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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 8], esi
mov edx, dword [ebp + 8]
cmp byte [esi + 0x49], 1
mov dword [ebp - 0x18], edi
jne 0x4c9ee0
mov bl, byte [esi + 0x48]
test bl, 2
je 0x4c9ee0
mov eax, dword [esi + 0x78]
cmp byte [eax + 2], 0
je 0x4c9ee0
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
cmp ecx, edx
jne 0x4c9ebe
cmp eax, dword [ebp + 0xc]
jne 0x4c9ebe
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, 8
je 0x4c9ee0
cmp eax, dword [ebp + 0xc]
jg 0x4c9ee0
jl 0x4c9ece
cmp ecx, edx
jae 0x4c9ee0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4c9ef4
mov ecx, edi
call fcn.004d5ad0
mov dword [ebp - 0x14], eax
mov byte [edi + 7], 0
jmp 0x4c9efb
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.004c9c30
test eax, eax
jne 0x4ca2ea
cmp byte [esi + 0x49], al
je 0x4c9ece
mov edx, 1
sub edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
nop word [eax + eax]
movsx eax, word [esi + 0x4c]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov ecx, edx
mov ebx, dword [esi + eax*4 + 0x78]
mov dword [ebp - 0xc], ebx
movzx esi, word [ebx + 0x12]
dec esi
mov edi, esi
mov dword [ebp - 0x20], esi
sar edi, cl
cmp dword [ebp - 0x14], 0
mov ecx, dword [ebp - 8]
mov word [ecx + eax*2 + 0x4e], di
jne 0x4ca052
movzx ecx, byte [ebx + 7]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebx + 0x40]
mov dl, byte [ebx + 3]
movzx ecx, byte [eax + edi*2]
movzx eax, byte [eax + edi*2 + 1]
shl ecx, 8
or ecx, eax
movzx eax, word [ebx + 0x14]
and ecx, eax
add ecx, dword [ebp - 0x20]
add ecx, dword [ebx + 0x38]
test dl, dl
je 0x4c9f92
cmp byte [ecx], 0x80
jb 0x4c9f91
mov eax, dword [ebx + 0x3c]
inc ecx
cmp ecx, eax
jae 0x4ca22d
cmp byte [ecx], 0x80
jae 0x4c9f83
inc ecx
lea edx, [ebp - 0x30]
call fcn.004b8380
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
jg 0x4c9fff
jl 0x4c9fae
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x4ca002
lea edx, [edi + 1]
mov dword [ebp - 0x10], edx
cmp edx, esi
jle 0x4ca017
or ebx, 0xffffffff
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
cmp byte [eax + 5], 0
jne 0x4ca270
mov ebx, eax
movzx eax, word [ebx + 0x12]
cmp edx, eax
jl 0x4ca1d0
movzx ecx, byte [ebx + 6]
add ecx, dword [ebx + 0x38]
movzx edx, byte [ecx + 8]
movzx eax, byte [ecx + 9]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xa]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xb]
jmp 0x4ca203
mov edx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jl 0x4ca028
jg 0x4ca00d
cmp eax, edx
jbe 0x4ca028
mov edx, dword [ebp - 0x10]
lea esi, [edi - 1]
cmp edx, esi
jg 0x4ca021
lea edi, [esi + edx]
sar edi, 1
jmp 0x4c9f57
mov ebx, 1
jmp 0x4c9fbb
mov esi, dword [ebp - 8]
or byte [esi + 0x48], 2
mov dword [esi + 0x18], eax
movsx eax, word [esi + 0x4c]
mov dword [esi + 0x1c], ecx
mov word [esi + eax*2 + 0x4e], di
cmp byte [ebx + 5], 0
jne 0x4ca252
mov edx, edi
mov dword [ebp - 0x10], edx
jmp 0x4c9fcd
mov eax, dword [ebx + 0x40]
movzx ebx, byte [ebx + 7]
movzx edx, byte [eax + edi*2 + 1]
movzx eax, byte [eax + edi*2]
shl eax, 8
or edx, eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
and edx, eax
mov eax, dword [ebp - 0xc]
add edx, ebx
add edx, dword [eax + 0x38]
movzx eax, byte [eax + 8]
movzx ecx, byte [edx]
cmp ecx, eax
ja 0x4ca098
push dword [ebp - 0x18]
lea eax, [edx + 1]
push eax
push ecx
call dword [ebp - 0x14]
add esp, 0xc
mov ebx, eax
jmp 0x4ca1a0
mov al, byte [edx + 1]
test al, al
js 0x4ca0ca
and ecx, 0x7f
movzx eax, al
shl ecx, 7
add ecx, eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0xa]
cmp ecx, eax
ja 0x4ca0ca
push dword [ebp - 0x18]
lea eax, [edx + 2]
push eax
push ecx
call dword [ebp - 0x14]
add esp, 0xc
mov ebx, eax
jmp 0x4ca1a0
mov esi, dword [ebp - 8]
sub edx, ebx
mov ecx, dword [ebp - 0xc]
add esi, 0x18
push esi
call fcn.004c6390
mov ebx, dword [esi]
add esp, 4
mov eax, ebx
mov dword [ebp - 0x24], ebx
cdq
mov esi, eax
mov ecx, esi
or ecx, edx
je 0x4ca2d6
test edx, edx
ja 0x4ca2d6
jb 0x4ca108
cmp esi, 0x7fffff00
jae 0x4ca2d6
cmp dword [0x81ea00], 0
je 0x4ca148
mov eax, dword [0x8b2620]
test eax, eax
je 0x4ca124
push eax
call dword [0x81ea54]
add esp, 4
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.004b41f0
mov eax, dword [0x8b2620]
test eax, eax
je 0x4ca143
push eax
call dword [0x81ea5c]
mov esi, dword [ebp - 0x1c]
jmp 0x4ca154
mov esi, dword [ebp - 0x1c]
jmp 0x4ca157
push esi
call dword [0x81ea24]
mov esi, eax
mov dword [ebp - 0x1c], esi
add esp, 4
test esi, esi
je 0x4ca2d6
mov eax, dword [ebp - 8]
xor edx, edx
push 2
push esi
push ebx
movsx ecx, word [eax + 0x4c]
mov word [eax + ecx*2 + 0x4e], di
mov ecx, eax
call fcn.004c97d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4ca2cb
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x24]
call dword [ebp - 0x14]
add esp, 0xc
mov ebx, eax
push esi
call fcn.004b4670
mov esi, dword [ebp - 0x20]
add esp, 4
test ebx, ebx
jns 0x4ca1ac
lea edx, [edi + 1]
mov dword [ebp - 0x10], edx
jmp 0x4ca1bb
jle 0x4ca293
mov edx, dword [ebp - 0x10]
lea esi, [edi - 1]
mov dword [ebp - 0x20], esi
cmp edx, esi
jg 0x4c9fbb
mov ebx, dword [ebp - 0xc]
lea edi, [esi + edx]
sar edi, 1
jmp 0x4ca052
mov eax, dword [ebx + 0x40]
movzx ecx, byte [eax + edx*2]
movzx eax, byte [eax + edx*2 + 1]
shl ecx, 8
or ecx, eax
movzx eax, word [ebx + 0x14]
and ecx, eax
add ecx, dword [ebx + 0x38]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
mov ecx, dword [ebp - 0x10]
shl edx, 8
or edx, eax
movsx eax, word [esi + 0x4c]
mov word [esi + eax*2 + 0x4e], cx
mov ecx, esi
call fcn.004c9b90
mov ebx, eax
test ebx, ebx
jne 0x4ca2de
mov edx, dword [ebp - 0x28]
jmp 0x4c9f20
push 0x7961e4
push 0xe09e
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004b68a0
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], 0
xor eax, eax
and byte [esi + 0x48], 0xf9
mov word [esi + 0x2c], ax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [esi + 0x4c]
mov word [esi + eax*2 + 0x4e], di
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
xor eax, eax
xor ebx, ebx
mov word [esi + 0x2c], ax
and byte [esi + 0x48], 0xf9
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
xor ebx, ebx
mov eax, dword [ebp + 0x14]
mov ecx, 0xb
mov dword [eax], 0
movsx eax, word [esi + 0x4c]
mov word [esi + eax*2 + 0x4e], di
mov eax, dword [ebp - 0x18]
cmp byte [eax + 7], bl
cmovne ebx, ecx
xor eax, eax
and byte [esi + 0x48], 0xf9
mov word [esi + 0x2c], ax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004b4670
add esp, 4
jmp 0x4ca2db
mov ebx, 7
mov esi, dword [ebp - 8]
xor eax, eax
and byte [esi + 0x48], 0xf9
mov word [esi + 0x2c], ax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret