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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov edx, dword [esi + 0xc]
mov eax, dword [ecx + 0x10]
add edx, edx
mov eax, dword [eax + edx*8 + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x518]
push eax
mov dword [ebp - 8], edx
call fcn.004120f0
add esp, 4
mov dword [esi + 0x518], 0
jmp 0x49fc00
cmp dword [esi + 0x14], 0
lea edi, [esi + 0x14]
je 0x49fd63
mov eax, dword [esi + 0x510]
lea ecx, [eax + eax*4]
mov edx, dword [esi + ecx*8 + 0x24]
cmp dword [esi + ecx*8 + 0x18], edx
lea ebx, [esi + ecx*8 + 0x10]
jge 0x49fc5a
mov ecx, dword [ebx + 0x1c]
jmp 0x49fc30
mov eax, dword [ebx + 8]
lea esi, [eax + eax*2]
mov edi, dword [ecx + esi*8 + 0x14]
lea esi, [ecx + esi*8]
mov dword [ebp - 0x10], esi
cmp edi, dword [esi + 8]
jl 0x49fe01
cmp dword [ebx + 0x20], 0
jne 0x49fc57
inc eax
mov dword [ebx + 8], eax
cmp eax, edx
jl 0x49fc30
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x20], 0
je 0x49fc69
cmp dword [ebx + 8], edx
jle 0x49fee7
mov edi, ebx
call fcn.00426550
mov eax, dword [ebx + 4]
test eax, eax
je 0x49fcce
test byte [eax + 0x1c], 0x20
je 0x49fcc9
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edi, dword [edx]
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
dec eax
push edx
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp - 0xc]
push 0
push eax
call fcn.004b5250
mov ecx, dword [edi + 0x48]
push edx
push eax
mov eax, dword [ebp - 0x10]
push eax
call ecx
add esp, 0x10
jmp 0x49fcce
call fcn.00414640
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x49fd2a
cmp dword [0x4fa060], 0
je 0x49fd20
mov eax, dword [0x61e1b8]
test eax, eax
je 0x49fcf1
push eax
call dword [0x4fa0b0]
add esp, 4
push edi
call dword [0x4fa08c]
sub dword [0x61e158], eax
dec dword [0x61e17c]
push edi
call dword [0x4fa084]
mov eax, dword [0x61e1b8]
add esp, 8
test eax, eax
je 0x49fd2a
push eax
call dword [0x4fa0b8]
jmp 0x49fd27
push edi
call dword [0x4fa084]
add esp, 4
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x510]
test eax, eax
je 0x49fbc0
dec eax
mov dword [esi + 0x510], eax
jmp 0x49fc00
mov edx, dword [esi + 4]
push edx
call fcn.0049e190
add esp, 4
cmp eax, 0x64
mov eax, dword [esi + 4]
jne 0x49fdea
push 1
push eax
call fcn.004358f0
mov ebx, eax
mov eax, dword [ebp - 8]
add esp, 8
cmp dword [eax + 0x18], 0
jne 0x49fda7
mov ecx, dword [esi + 4]
push ecx
mov dword [esi + 8], 1
call fcn.00482ca0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [eax + 0xcc]
push 0
push edi
push ebx
push eax
call edx
mov dword [esi + 0x10], ebx
xor ebx, ebx
push 0x4ea71c
mov edi, eax
mov dword [esi + 0x18], ebx
call fcn.0043ef50
add esp, 0x14
mov dword [esi + 0x1c], eax
mov dword [esi + 0x510], ebx
cmp eax, ebx
jne 0x49ff89
mov edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
mov dword [esi + 8], 1
call fcn.00482ca0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
cmp byte [edi + 9], 0
je 0x49fe18
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x49fe18
call fcn.00416df0
cmp byte [edi + 9], 0
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 4], edx
je 0x49fe36
dec dword [edi + 0xc]
jne 0x49fe36
mov esi, edi
call fcn.00416dd0
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
push 0
push eax
call fcn.004359d0
mov dword [edi + 0x514], eax
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
mov eax, dword [edx + ecx*4]
mov dword [edi + 0x51c], eax
xor eax, eax
mov dword [edi + 0x520], 0x4ea710
mov dword [edi + 0x524], eax
mov dword [edi + 0x530], eax
mov ecx, dword [esi + 0x14]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
push ecx
push edx
push eax
push str._s_.3x_.6x
call fcn.0043ef50
mov ebx, eax
mov dword [edi + 0x518], ebx
mov ecx, dword [esi + 8]
dec ecx
add esp, 0x18
cmp dword [esi + 0x14], ecx
jge 0x49feb3
mov edx, dword [ebp - 4]
add edx, 0xfffffffc
mov dword [edi + 0x52c], 0
mov dword [edi + 0x528], edx
jmp 0x49feca
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 4]
sub eax, ecx
sub eax, 4
mov dword [edi + 0x528], ecx
mov dword [edi + 0x52c], eax
inc dword [esi + 0x14]
mov esi, edi
call fcn.004266e0
mov eax, ebx
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffff9
pop esi
add eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
inc dword [esi + 0x510]
cmp dword [esi + 0x510], 0x20
jl 0x49ff26
push esi
call fcn.004843a0
push 0x4e5fc4
push 0x2ff7c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043f0f0
add esp, 0x18
pop edi
pop esi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0x14]
jne 0x49ff33
mov eax, dword [ebx + 0x20]
jmp 0x49ff3d
mov edx, dword [ebx + 0x1c]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*8 + 4]
push 0
lea ecx, [ebx + 0x2c]
push ecx
mov dword [ebx + 0x28], eax
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xcc]
push eax
call edx
mov ecx, dword [ebx + 0xc]
mov edi, eax
mov eax, dword [ebx + 8]
push eax
push ecx
push str._s_.3x_
mov dword [ebx + 0x30], 0
call fcn.0043ef50
inc dword [ebx + 8]
add esp, 0x1c
mov dword [ebx + 0x34], eax
test eax, eax
jne 0x49ff89
mov edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x4a00b1
mov eax, dword [esi + 0x510]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
push edi
push eax
lea ebx, [esi + edx*8 + 0x10]
call fcn.004359d0
mov edx, dword [ebp - 4]
mov dword [esi + 0x514], eax
mov ecx, dword [ebx]
push ebx
push edx
mov dword [esi + 0x51c], ecx
call fcn.00431e60
mov edi, eax
add esp, 0x10
mov dword [ebp - 8], eax
test edi, edi
jne 0x4a00b1
call fcn.004266e0
movzx eax, byte [ebx + 0x10]
add eax, 0xfffffffe
cmp eax, 0xb
ja case.0x49ffe8.3
movzx eax, byte [eax + 0x4a00c8]
jmp dword [eax*4 + 0x4a00bc]
mov esi, dword [ebp + 8]
mov dword [esi + 0x520], 0x4ea6f0
jmp 0x4a001e
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x520], 0x4ea6e8
mov esi, ecx
jmp 0x4a001e
mov edx, dword [ebp + 8]
mov dword [edx + 0x520], 0x4ea6dc
mov esi, edx
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x524], eax
mov ecx, dword [ebx + 0x18]
mov dword [esi + 0x52c], ecx
mov edx, dword [ebx + 0x24]
mov dword [esi + 0x530], edx
mov eax, dword [ebx + 0xc]
push eax
push 0x4e6160
call fcn.0043ef50
mov dword [esi + 0x518], eax
xor esi, esi
add esp, 8
cmp eax, esi
jne 0x4a005e
mov edi, 7
mov dword [ebp - 8], edi
mov ecx, dword [ebx + 0x14]
xor edx, edx
xor eax, eax
mov dword [ebp - 0xc], esi
cmp ecx, 2
jl 0x4a0091
mov eax, dword [ebx + 0x1c]
add ecx, 0xfffffffe
shr ecx, 1
inc ecx
lea edi, [ecx + ecx]
mov dword [ebp - 0x10], edi
lea esp, [esp]
add edx, dword [eax]
add esi, dword [eax + 0x18]
add eax, 0x30
dec ecx
jne 0x4a0080
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x14]
jge 0x4a00a1
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + ecx*8]
jmp 0x4a00a4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add esi, edx
add esi, eax
mov dword [ecx + 0x528], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret