Function at 0x401640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3cc
mov eax, dword [esp + 0x3d0]
push ebx
push ebp
push esi
push edi
push 0x10
xor ebp, ebp
push ebp
push eax
call fcn.00416530
mov ebx, eax
add esp, 0xc
cmp ebx, ebp
mov dword [esp + 0x3c], ebx
jge 0x401679
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3cc
ret
mov eax, dword [0x43f394]
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x38], esi
je 0x4016b9
push 0x10
push 1
push eax
call fcn.00414130
mov esi, eax
add esp, 0xc
cmp esi, ebp
mov dword [esp + 0x38], esi
jne 0x4016b9
push ebp
push ebx
call fcn.00416580
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3cc
ret
mov ecx, dword [0x43f3a4]
mov edx, dword [0x43f3a0]
push ebp
push ebp
push ecx
push edx
push ebp
push ebp
lea eax, [esp + 0x94]
push ebx
push eax
call fcn.00414360
push 0x4028b0
push 1
push 0x4027a0
xor eax, eax
mov ecx, 0x1e
mov edi, 0x43f2f0
push 0x2c
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x12c]
push ebp
push ecx
call fcn.00414b80
push 0x28140
push 0x7ffff8
call fcn.004154b0
mov eax, dword [0x42b040]
add esp, 0x40
cmp eax, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
je 0x402572
lea ebx, [ebx]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
inc edx
lea eax, [esi + 9]
cmp eax, ecx
mov dword [esp + 0x30], edx
ja 0x40176b
mov edx, dword [esi]
mov dword [esp + 0x14], edx
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], ecx
mov dl, byte [esi + 8]
mov byte [esp + 0x1c], dl
mov dword [esp + 0x8c], eax
jmp 0x401790
push 9
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x84]
push ecx
call dword [esp + 0xa8]
add esp, 0xc
test eax, eax
jne 0x40256a
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x98]
mov eax, dword [esp + 0x8c]
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x80]
sub eax, ebx
cdq
add eax, edi
adc edx, esi
add eax, 0xfffffff7
adc edx, 0xffffffff
mov dword [0x43f2e0], eax
movzx ax, byte [esp + 0x16]
mov dword [0x43f2e4], edx
movzx dx, byte [esp + 0x15]
and ecx, 0xff
xor ebx, ebx
shl edx, 8
add edx, eax
mov eax, dword [esp + 0x17]
and eax, 0xff
shl eax, 8
add eax, ecx
mov ecx, dword [esp + 0x19]
and edx, 0xffff
shl eax, 8
and ecx, 0xff
add eax, ecx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x1a]
shl eax, 8
and edx, 0xff
add eax, edx
mov dword [esp + 0x48], eax
mov dword [0x43f2e8], eax
cmp dword [0x43f384], ebx
jne 0x401825
mov dword [esp + 0x48], ebx
movzx di, byte [esp + 0x1b]
movzx ax, byte [esp + 0x1c]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x100]
shl edi, 8
push edx
add edi, eax
and edi, 0xffff
mov dword [esp + 0x18], edi
call fcn.00414fe0
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x40188d
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x28], eax
cmp dword [0x43f36c], ebx
je 0x40188d
cmp dword [ebp + 0x24], ebx
je 0x40188d
cmp dword [ebp + 0x20], ebx
je 0x40188d
lea ecx, [esp + 0xfc]
push ebp
push ecx
call fcn.004029a0
add esp, 8
test eax, eax
jne 0x4025c7
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x3e4]
and esi, 0xff
cmp esi, 0xa
mov dword [esp + 0x34], esi
jae 0x4018d1
cmp dword [edx], ebx
je 0x4018b4
cmp ebp, ebx
je 0x4018d1
cmp dword [ebp + 0x24], ebx
je 0x4018d1
lea eax, [esi + esi*2]
shl eax, 2
mov ecx, dword [eax + 0x43f2f0]
inc ecx
cmp edi, ebx
mov dword [eax + 0x43f2f0], ecx
je 0x4018d1
inc dword [eax + 0x43f2f4]
cmp esi, 7
ja case.default.0x4018da
jmp dword [esi*4 + 0x4026c8]
cmp dword [edx], ebx
jne 0x4018fc
mov ecx, dword [0x43f2f0]
dec ecx
cmp edi, ebx
mov dword [0x43f2f0], ecx
je 0x4018fc
dec dword [0x43f2f4]
cmp ebp, ebx
je 0x401911
mov edx, dword [ebp + 0x14]
push edx
push str._nWarning:__s_is_opened_with_same_process_and_filenumber_nMaybe_you_should_use_the__P_option___n
call fcn.0041c290
add esp, 8
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
lea eax, [ecx + 2]
cmp eax, edx
ja 0x401937
mov cx, word [ecx]
mov word [esp + 0x14], cx
mov dword [esp + 0x8c], eax
jmp 0x401958
push 2
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x84]
push eax
call dword [esp + 0xa8]
add esp, 0xc
cmp eax, ebx
jne 0x402627
movzx cx, byte [esp + 0x14]
movzx dx, byte [esp + 0x15]
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
shl ecx, 8
mov dword [esp + 0x60], eax
lea eax, [esp + 0x58]
add ecx, edx
and ecx, 0xffff
push ecx
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.004026f0
add esp, 0xc
test eax, eax
jne 0x402627
mov edx, dword [esp + 0x58]
push 0x5c
push edx
call fcn.0041c6d0
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x4019c3
mov byte [eax], 0x2f
inc eax
push 0x5c
push eax
call fcn.0041c6d0
add esp, 8
cmp eax, ebx
jne 0x4019b0
mov eax, dword [0x43f380]
mov esi, dword [esp + 0x58]
xor edi, edi
cmp eax, ebx
jbe 0x4019ee
push 0x2f
push esi
call fcn.0041c6d0
add esp, 8
cmp eax, ebx
je 0x4019ee
lea esi, [eax + 1]
mov eax, dword [0x43f380]
inc edi
cmp edi, eax
jb 0x4019d2
mov ecx, dword [0x43f390]
cmp ecx, ebx
lea eax, [esp + 0x1dc]
je 0x401a2a
push ecx
lea eax, [esp + 0x1e0]
push eax
call fcn.00419346
lea ecx, [esp + 0x1e4]
push ecx
call fcn.004164e0
lea edx, [esp + 0x1e8]
push edx
call fcn.004191de
add esp, 0x10
push esi
push eax
call fcn.00419346
lea eax, [esp + 0x1e4]
push eax
call fcn.00416420
push ebx
mov byte [eax], 0
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x110]
push 0x4027d0
push eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ebx
call fcn.00415040
mov ecx, dword [esp + 0x94]
inc ecx
mov dword [esp + 0x6c], ecx
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x1f8]
repne scasb al, byte es:[edi]
not ecx
push 0x10
add ecx, 5
push ecx
lea edx, [esp + 0x200]
push edx
call fcn.00416110
mov ecx, dword [esp + 0x78]
add esp, 0x28
cmp ecx, 1
mov dword [esp + 0x5c], eax
jle 0x401ac5
push ecx
push str.__d_
push eax
call fcn.004191de
add esp, 4
push eax
call fcn.0041c669
add esp, 0xc
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3e4]
mov dword [esp + 0x70], eax
mov eax, dword [ecx]
cmp eax, ebx
mov ebp, 1
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
je 0x401b37
xor ebp, ebp
mov dword [esp + 0x6c], ebp
mov edi, ecx
nop
lea esi, [esp + 0x1dc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401b1b
test cl, cl
je 0x401b17
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401b1b
add eax, 2
add esi, 2
test cl, cl
jne 0x401af7
xor eax, eax
jmp 0x401b20
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x401b2d
mov ebp, 1
mov dword [esp + 0x6c], ebp
mov eax, dword [edi + 4]
add edi, 4
cmp eax, ebx
jne 0x401af0
cmp dword [0x43f36c], ebx
je 0x401be9
cmp ebp, ebx
je 0x401be9
mov eax, dword [esp + 0x28]
cmp eax, dword [0x43f374]
jb 0x401b73
lea ecx, [esp + 0xfc]
push ecx
call fcn.00402900
add esp, 4
test eax, eax
jne 0x4024a9
dec dword [esp + 0x28]
push 1
lea edx, [esp + 0x1e0]
push 2
push edx
call fcn.00407280
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x64], eax
je 0x4024a9
mov eax, dword [eax]
mov ecx, dword [eax + 0xe4]
push 0x10
push ecx
call fcn.00416060
add esp, 8
cmp eax, ebx
mov dword [esp + 0x60], eax
je 0x402667
mov ecx, dword [esp + 0x28]
mov eax, dword [0x43f388]
xor ebx, ebx
inc ecx
cmp eax, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x68], ebx
je 0x401bd8
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
mov dword [eax + 0x1ac], ebx
jmp 0x401be9
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov eax, dword [0x43f2e8]
mov dword [edx + 0x1ac], eax
push ebx
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x104]
push edx
call fcn.00414d30
mov eax, dword [esp + 0x78]
add esp, 0xc
cmp eax, ebx
je 0x40255a
mov eax, dword [0x43f368]
test eax, eax
je 0x401c34
mov eax, dword [0x43f398]
test eax, eax
jne 0x401c34
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
push eax
push ecx
push str._s:_open_____d
call fcn.00402af0
add esp, 0xc
mov ecx, dword [0x43f2f0]
mov eax, dword [esp + 0x10]
inc ecx
test eax, eax
mov dword [0x43f2f0], ecx
je 0x40255a
inc dword [0x43f2f4]
jmp 0x40255a
cmp dword [0x43f368], ebx
je 0x401ca3
cmp dword [0x43f398], ebx
jne 0x401ca3
cmp dword [edx], ebx
je 0x401c7f
cmp ebp, ebx
je 0x40255a
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x401ca3
mov edi, dword [esp + 0x10]
test ebp, ebp
je 0x401c88
mov eax, dword [ebp + 0x14]
jmp 0x401c8d
mov eax, str.Unknown
mov edx, dword [str.close]
push edi
push edx
push eax
push str._s:__s_____d
call fcn.00402af0
add esp, 0x10
test ebp, ebp
je 0x40255a
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x401cb6
dec dword [esp + 0x28]
lea eax, [esp + 0xfc]
push ebp
push eax
call fcn.00414e80
add esp, 8
jmp 0x40255a
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
lea eax, [ecx + 1]
cmp eax, esi
ja 0x401cf0
mov cl, byte [ecx]
mov byte [esp + 0x14], cl
mov dword [esp + 0x8c], eax
jmp 0x401d1c
push 1
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x84]
push eax
call dword [esp + 0xa8]
add esp, 0xc
cmp eax, ebx
jne 0x402627
mov edx, dword [esp + 0x3e4]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [0x43f368]
and esi, 0xff
test eax, eax
je 0x401d6d
mov eax, dword [0x43f398]
test eax, eax
jne 0x401d6d
cmp dword [edx], 0
je 0x401d48
test ebp, ebp
je 0x401d6d
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x401d6d
test ebp, ebp
je 0x401d51
mov eax, dword [ebp + 0x14]
jmp 0x401d56
mov eax, str.Unknown
mov ecx, dword [str.extra]
push edi
push esi
push ecx
push eax
push str._s:__s__d______d
call fcn.00402af0
add esp, 0x14
mov eax, dword [0x43f36c]
test eax, eax
je 0x40255a
test ebp, ebp
je 0x40255a
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x40255a
mov edx, dword [ebp + 0x1c]
push esi
push edx
call fcn.00406ae0
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, ecx
je 0x40255a
push 0x43bb78
call fcn.0041c503
call fcn.004163f0
mov ecx, dword [0x43f2e4]
mov edx, dword [0x43f2e0]
mov esi, eax
lea eax, [esp + 0xd0]
push eax
push ecx
push edx
call fcn.004190f0
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
push eax
mov eax, dword [str.extra]
push eax
push ecx
push edx
push str.Warning:_error__d__expected__d_on_command__s_at__s_n
push 0x43bb98
call fcn.0041c2d1
push 0x43bb98
call fcn.0041c503
add esp, 0x2c
jmp 0x40255a
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
lea edx, [ecx + 8]
cmp edx, eax
ja 0x401e2d
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
mov esi, dword [ecx + 4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x8c], edx
jmp 0x401e56
push 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x84]
push ecx
call dword [esp + 0xa8]
add esp, 0xc
cmp eax, ebx
jne 0x402627
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x15]
mov ecx, dword [esp + 0x16]
and eax, 0xff
shl eax, 8
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x17]
shl eax, 8
and ecx, 0xff
push 1
add eax, ecx
push 0
shl eax, 8
and edx, 0xff
add eax, edx
push 0
push eax
call fcn.0041c790
mov ecx, dword [esp + 0x1a]
and esi, 0xff
mov edi, eax
mov eax, dword [esp + 0x19]
shl esi, 8
and eax, 0xff
add esi, eax
shl esi, 8
and ecx, 0xff
mov ebx, edx
mov edx, dword [esp + 0x1b]
add esi, ecx
shl esi, 8
and edx, 0xff
xor eax, eax
add esi, edx
add edi, esi
adc ebx, eax
mov eax, dword [0x43f368]
test eax, eax
je 0x401f4d
mov edx, dword [0x43f398]
test edx, edx
je 0x401f0d
mov eax, dword [0x42b048]
cmp eax, edi
mov ecx, dword [0x42b04c]
jne 0x401ef6
cmp ecx, ebx
je 0x401eff
cmp eax, 0xffffffff
jne 0x401f4d
test ecx, ecx
jne 0x401f4d
push edx
push ebp
call fcn.00402b60
add esp, 8
test eax, eax
jne 0x401f4d
mov ecx, dword [esp + 0x3e4]
cmp dword [ecx], 0
je 0x401f24
test ebp, ebp
je 0x401f4d
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x401f4d
test ebp, ebp
je 0x401f2d
mov eax, dword [ebp + 0x14]
jmp 0x401f32
mov eax, str.Unknown
mov edx, dword [esp + 0x10]
mov ecx, dword [str.delete]
push edx
push edi
push ecx
push eax
push str._s:__s_at__ld_____d
call fcn.00402af0
add esp, 0x14
mov eax, dword [0x43f36c]
test eax, eax
je 0x40255a
test ebp, ebp
je 0x40255a
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x40255a
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
push ebx
push edi
push edx
push eax
call fcn.00406a40
add esp, 0x10
test eax, eax
je 0x401fac
mov eax, dword [0x43f37c]
test eax, eax
je 0x4024a9
mov eax, dword [0x43f368]
test eax, eax
je 0x401fa6
push str.error:_Didnt_find_row_to_delete_with_mi_rrnd
call fcn.00402af0
add esp, 4
inc dword [0x43f31c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
push ecx
push edx
call fcn.004050c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x401fcf
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x401fe0
jmp 0x40255a
call fcn.004163f0
mov ecx, dword [esp + 0x10]
cmp dword [eax], ecx
je 0x40255a
mov eax, dword [0x43f37c]
test eax, eax
je 0x4024a9
test esi, esi
je 0x401ff7
inc dword [0x43f31c]
mov eax, dword [0x43f368]
test eax, eax
je 0x40255a
push ecx
push esi
push str.error:_Got_result__d_from_mi_delete_instead_of__d
call fcn.00402af0
add esp, 0xc
jmp 0x40255a
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
lea edx, [ecx + 0xc]
cmp edx, eax
ja 0x40204a
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
mov edi, dword [ecx + 4]
mov dword [esp + 0x18], edi
mov esi, dword [ecx + 8]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x8c], edx
jmp 0x402077
push 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x84]
push ecx
call dword [esp + 0xa8]
add esp, 0xc
cmp eax, ebx
jne 0x402627
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x15]
mov ecx, dword [esp + 0x16]
and eax, 0xff
shl eax, 8
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x17]
shl eax, 8
and ecx, 0xff
push 1
add eax, ecx
push 0
shl eax, 8
and edx, 0xff
add eax, edx
push 0
push eax
call fcn.0041c790
mov ecx, dword [esp + 0x1a]
mov ebx, eax
mov eax, dword [esp + 0x19]
and edi, 0xff
and eax, 0xff
shl edi, 8
add edi, eax
mov eax, dword [esp + 0x1b]
and ecx, 0xff
shl edi, 8
add edi, ecx
and eax, 0xff
shl edi, 8
add edi, eax
mov eax, dword [esp + 0x1e]
xor ecx, ecx
add ebx, edi
adc edx, ecx
mov ecx, dword [esp + 0x1f]
and esi, 0xff
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x1d]
shl esi, 8
and edx, 0xff
add esi, edx
shl esi, 8
and eax, 0xff
add esi, eax
and ecx, 0xff
shl esi, 8
add esi, ecx
push esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x38], 0
call fcn.004026f0
add esp, 0xc
test eax, eax
jne 0x402627
mov edx, dword [0x43f398]
test edx, edx
je 0x402188
mov eax, dword [0x42b048]
cmp eax, ebx
mov ecx, dword [0x42b04c]
jne 0x402169
cmp ecx, dword [esp + 0x44]
je 0x40217a
cmp eax, 0xffffffff
jne 0x4021ff
test ecx, ecx
jne 0x4021ff
push edx
push ebp
call fcn.00402b60
add esp, 8
test eax, eax
jne 0x4021ff
mov ecx, dword [esp + 0x3e4]
cmp dword [ecx], 0
je 0x40219f
test ebp, ebp
je 0x4021ff
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4021ff
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4021c0
mov edx, dword [esp + 0x2c]
push 0x24
push esi
push edx
push eax
call fcn.00416190
add esp, 0x10
test eax, eax
jne 0x402667
mov eax, dword [0x43f368]
test eax, eax
je 0x4021ff
test ebp, ebp
je 0x4021d2
mov eax, dword [ebp + 0x14]
jmp 0x4021d7
mov eax, str.Unknown
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
push edi
push esi
push ecx
mov ecx, dword [edx*4 + 0x42b050]
push ebx
push ecx
push eax
push str._s:__s_at__ld__length_ld_____d
call fcn.00402af0
add esp, 0x1c
jmp 0x402203
mov edi, dword [esp + 0x10]
mov eax, dword [0x43f36c]
test eax, eax
je 0x4023c1
test ebp, ebp
je 0x4023c1
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x4023c1
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
mov ecx, dword [edx + 0x110]
test ecx, ecx
je 0x402240
mov ecx, dword [esp + 0x2c]
push ecx
push eax
call fcn.00402830
add esp, 8
cmp dword [esp + 0x34], 2
jne 0x40233e
mov edx, dword [esp + 0x44]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push edx
push ebx
push eax
push ecx
call fcn.00406a40
add esp, 0x10
test eax, eax
je 0x4022b2
mov eax, dword [0x43f37c]
test eax, eax
je 0x4025d8
mov eax, dword [0x43f368]
test eax, eax
je 0x402288
push str.error:_Didnt_find_row_to_update_with_mi_rrnd
call fcn.00402af0
add esp, 4
cmp dword [0x43f37c], 1
je 0x4022a7
test edi, edi
jne 0x4022a7
mov edx, dword [esp + 0x2c]
push edx
push ebp
call fcn.00402a40
add esp, 8
test eax, eax
je 0x4022b2
inc dword [0x43f310]
jmp 0x40255a
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
push eax
push ecx
push edx
call fcn.00404a50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4022e3
test edi, edi
jne 0x4022f0
mov edx, dword [esp + 0x2c]
push edx
call fcn.004160f0
add esp, 4
jmp 0x40255a
call fcn.004163f0
cmp dword [eax], edi
je 0x4023c1
mov eax, dword [0x43f37c]
test eax, eax
je 0x4024a9
mov eax, dword [0x43f368]
test eax, eax
je 0x402319
mov eax, dword [esp + 0x10]
push eax
push esi
push str.error:_Got_result__d_from_mi_update_instead_of__d
call fcn.00402af0
add esp, 0xc
test esi, esi
je 0x4023c1
mov eax, dword [0x43f310]
mov edx, dword [esp + 0x2c]
inc eax
push edx
mov dword [0x43f310], eax
call fcn.004160f0
add esp, 4
jmp 0x40255a
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x1c]
push ecx
push edx
call fcn.00403670
mov esi, eax
add esp, 8
test esi, esi
jne 0x40235b
test edi, edi
jne 0x402364
jmp 0x40239f
call fcn.004163f0
cmp dword [eax], edi
je 0x40239f
mov eax, dword [0x43f37c]
test eax, eax
je 0x4024a9
mov eax, dword [0x43f368]
test eax, eax
je 0x40238d
mov eax, dword [esp + 0x10]
push eax
push esi
push str.error:_Got_result__d_from_mi_write_instead_of__d
call fcn.00402af0
add esp, 0xc
test esi, esi
je 0x40239f
mov eax, dword [esp + 0x34]
lea eax, [eax + eax*2]
inc dword [eax*4 + 0x43f2f8]
mov eax, dword [0x43f37c]
test eax, eax
jne 0x4023c1
mov eax, dword [ebp + 0x1c]
cmp ebx, dword [eax + 0x70]
jne 0x4025e5
mov ecx, dword [esp + 0x44]
cmp ecx, dword [eax + 0x74]
jne 0x4025e5
mov edx, dword [esp + 0x2c]
push edx
call fcn.004160f0
add esp, 4
jmp 0x40255a
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
lea eax, [ecx + 4]
cmp eax, esi
ja 0x4023f7
mov ecx, dword [ecx]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x8c], eax
jmp 0x402427
push 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x84]
push ecx
call dword [esp + 0xa8]
add esp, 0xc
cmp eax, ebx
jne 0x402627
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x3e4]
mov edi, dword [esp + 0x10]
mov eax, dword [0x43f368]
test eax, eax
mov esi, ecx
je 0x402470
mov eax, dword [0x43f398]
test eax, eax
jne 0x402470
cmp dword [edx], 0
je 0x40244b
test ebp, ebp
je 0x402470
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x402470
test ebp, ebp
je 0x402454
mov eax, dword [ebp + 0x14]
jmp 0x402459
mov eax, str.Unknown
mov edx, dword [str.lock]
push edi
push ecx
push edx
push eax
push str._s:__s__d______d_n
call fcn.00402af0
add esp, 0x14
mov eax, dword [0x43f36c]
test eax, eax
je 0x40255a
test ebp, ebp
je 0x40255a
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x40255a
mov eax, dword [ebp + 0x1c]
push esi
push eax
call fcn.00402d50
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, ecx
je 0x40255a
push 0x43bb78
call fcn.0041c503
call fcn.004163f0
mov ecx, dword [0x43f2e4]
mov edx, dword [0x43f2e0]
mov esi, eax
lea eax, [esp + 0xd0]
push eax
push ecx
push edx
call fcn.004190f0
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax*4 + 0x42b050]
mov eax, dword [esi]
push ecx
push edx
push eax
push str.Got_error__d__expected__d_on_command__s_at__s_n
push 0x43bb98
call fcn.0041c2d1
push 0x43bb98
call fcn.0041c503
add esp, 0x2c
jmp 0x402667
cmp dword [0x43f368], ebx
je 0x40255a
mov eax, dword [0x43f398]
test eax, eax
jne 0x40255a
mov ecx, dword [esp + 0x3e4]
cmp dword [ecx], 0
je 0x402533
test ebp, ebp
je 0x40255a
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x40255a
test ebp, ebp
je 0x40253c
mov ebp, dword [ebp + 0x14]
jmp 0x402541
mov ebp, str.Unknown
mov edx, dword [esp + 0x10]
mov eax, dword [str.re_open]
push edx
push eax
push ebp
push str._s:__s_____d_n
call fcn.00402af0
add esp, 0x10
mov ecx, dword [esp + 0x30]
cmp ecx, dword [0x42b040]
jne 0x401730
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
call fcn.00415620
lea ecx, [esp + 0xfc]
push ecx
call fcn.00414c60
lea edx, [esp + 0x80]
push edx
call fcn.00414b40
push 0
push ebx
call fcn.00416580
add esp, 0x10
test esi, esi
je 0x4026b8
push 0x10
push esi
call fcn.00414250
add esp, 8
test eax, eax
je 0x4026b8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3cc
ret
mov dword [esp + 0x34], 0xa
mov dword [esp + 0x10], ebx
jmp 0x4024a9
mov dword [esp + 0x10], 0
jmp 0x4024a9
mov eax, dword [esp + 0x44]
lea edx, [esp + 0xe4]
push edx
push eax
push ebx
call fcn.004190f0
mov edx, dword [ebp + 0x1c]
add esp, 0xc
push eax
mov eax, dword [edx + 0x74]
lea ecx, [esp + 0xd0]
push ecx
mov ecx, dword [edx + 0x70]
push eax
push ecx
call fcn.004190f0
add esp, 0xc
push eax
push str.error:_Wrote_at_position:__s__should_have_been__s
call fcn.0041c290
add esp, 0xc
jmp 0x402667
push 0x43bb78
call fcn.0041c503
call fcn.004163f0
mov edx, dword [eax]
push edx
push str.Got_error__d_when_reading_from_logfile_n
jmp 0x402650
push 0x43bb78
call fcn.0041c503
push esi
push str.Error:_found_unknown_command__d_in_logfile__aborted_n
push 0x43bb98
call fcn.0041c2d1
push 0x43bb98
call fcn.0041c503
add esp, 0x14
call fcn.00415620
lea ecx, [esp + 0xfc]
push ecx
call fcn.00414c60
lea edx, [esp + 0x80]
push edx
call fcn.00414b40
mov eax, dword [esp + 0x44]
push 0
push eax
call fcn.00416580
mov eax, dword [esp + 0x48]
add esp, 0x10
test eax, eax
je 0x4026a8
push 0x10
push eax
call fcn.00414250
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3cc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3cc
ret