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

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, ecx
lea edi, [ecx + 0x74]
movzx ecx, byte [ecx]
test cl, cl
je 0x46a76d
cmp cl, 3
jb 0x46a740
mov dword [esp], 0
cmp cl, 4
jne 0x46a67a
mov eax, dword [esi + 4]
test eax, eax
je 0x46a76d
jmp 0x46a8a0
mov byte [esi], 1
mov eax, dword [0x53c308]
test eax, eax
je 0x46a698
push 0x19a
call eax
add esp, 4
test eax, eax
jne 0x46a95c
mov edx, dword [esi + 0x10]
mov ecx, esi
mov eax, esp
push eax
push 0
push dword [esi + 0x3c]
push dword [esi + 0x38]
call fcn.00468c30
add esp, 0x10
test eax, eax
jne 0x46a8a0
mov ebp, dword [esi + 0x10]
test ebp, ebp
je 0x46a717
cmp dword [0x53c208], 0
je 0x46a70d
mov eax, dword [0x53de88]
test eax, eax
je 0x46a6db
push eax
call dword [0x53c258]
add esp, 4
push ebp
call dword [0x53c234]
add esp, 4
sub dword [0x53de30], eax
dec dword [0x53de54]
push ebp
call dword [0x53c22c]
add esp, 4
mov eax, dword [0x53de88]
test eax, eax
je 0x46a717
push eax
call dword [0x53c260]
jmp 0x46a714
push ebp
call dword [0x53c22c]
add esp, 4
mov dword [esi + 0x10], 0
mov eax, dword [esp]
test eax, eax
je 0x46a72a
mov dword [esi + 4], eax
jmp 0x46a734
cmp dword [esi + 4], 0
je 0x46a887
movzx ecx, byte [esi]
test cl, cl
je 0x46a752
nop dword [eax + eax]
cmp cl, 2
je 0x46a760
movzx eax, cl
cmp eax, 1
jne 0x46a76d
jmp 0x46a89b
mov byte [esi], 2
mov cl, 2
cmp cl, 2
jne 0x46a745
nop dword [eax]
mov byte [esi], 0
cmp dword [esi + 4], 0
jg 0x46a93d
mov ebp, dword [esi + 0x74]
movzx ebx, word [esi + 0x46]
inc ebx
mov word [esi + 0x46], bx
cmp byte [ebp], 0
je 0x46a8a8
mov eax, dword [0x53c308]
test eax, eax
je 0x46a79e
push 0x19c
call eax
add esp, 4
test eax, eax
jne 0x46a8a8
movzx ecx, byte [ebp + 8]
cmp bx, word [ebp + 0x18]
jb 0x46a8b4
test cl, cl
jne 0x46a7d2
jmp 0x46a8bf
call fcn.00444500
mov edx, dword [esi + 0x74]
movzx ebx, word [esi + 0x46]
cmp bx, word [edx + 0x18]
jb 0x46a850
movsx eax, byte [esi + 0x44]
test eax, eax
je 0x46a898
mov word [esi + 0x32], 0
and byte [esi + 1], 0xf9
movzx ecx, word [esi + eax*2 + 0x46]
mov word [esi + 0x46], cx
mov ecx, dword [esi + 0x74]
dec al
mov byte [esi + 0x44], al
movsx eax, al
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x46a7c0
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x80]
mov eax, dword [edx + 0x90]
mov dword [ecx + 0x10], eax
mov dword [edx + 0x90], ecx
mov ebx, dword [edx + 0x40]
mov eax, dword [ecx + 0x18]
dec eax
mov ebp, dword [edx + 0xac]
imul ebp, eax
mul dword [edx + 0xa8]
add edx, ebp
mov ebp, dword [ebx]
push dword [ecx + 4]
push edx
push eax
push ebx
call dword [ebp + 0x48]
add esp, 0x10
jmp 0x46a7c5
xor eax, eax
cmp byte [edx + 1], 0
je 0x46a8a0
mov word [esi + 0x32], 0
and byte [esi + 1], 0xf9
movzx ecx, byte [esi]
test cl, cl
jne 0x46a64d
lea ebp, [ebx + 1]
mov word [esi + 0x46], bp
cmp bp, word [edx + 0x18]
jb 0x46a944
mov word [esi + 0x46], bx
jmp 0x46a64d
movzx ecx, byte [esi]
cmp cl, 2
jne 0x46a745
jmp 0x46a760
mov byte [esi], 1
mov eax, 0x65
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x52b213
push 0x11ccb
jmp 0x46a8d2
xor eax, eax
test cl, cl
jne 0x46a8a0
jmp 0x46a94e
movsx eax, byte [esi + 0x44]
cmp eax, 0x13
jl 0x46a8ed
push 0x52b213
push 0x1198d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004287c0
add esp, 0x14
mov eax, 0xb
jmp 0x46a8a0
mov ecx, dword [ebp + 0x38]
movzx edx, byte [ebp + 9]
mov edx, dword [edx + ecx + 8]
mov ecx, dword [esi + 0x14]
mov word [esi + 0x32], 0
and byte [esi + 1], 0xf9
bswap edx
movzx ebx, word [esi + 0x46]
mov word [esi + eax*2 + 0x48], bx
mov eax, dword [esi + 0x74]
movsx ebx, byte [esi + 0x44]
mov dword [esi + ebx*4 + 0x78], eax
mov word [esi + 0x46], 0
inc byte [esi + 0x44]
movzx eax, byte [esi + 2]
push eax
push esi
push edi
call fcn.00469140
add esp, 0xc
test eax, eax
jne 0x46a8a0
jmp 0x46a94e
xor eax, eax
jmp 0x46a8a0
cmp byte [edx + 8], 0
jne 0x46a8a0
mov ecx, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0046a970
mov eax, 0xa
jmp 0x46a8a0