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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov esi, eax
xor eax, eax
mov edi, ecx
mov ebx, dword [edi + 0x3c]
xor ebp, ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
cmp byte [edi + 3], al
jne 0x1004d6c6
lea ebp, [eax + 4]
cmp byte [edi + 4], al
je 0x1004d6e7
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
add eax, ecx
cdq
push edx
push eax
lea ecx, [esi + ebp]
call fcn.1003d2d0
add esp, 8
add ebp, eax
jmp 0x1004d6ef
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push edx
push eax
lea ecx, [esi + ebp]
call fcn.1003d2d0
lea ecx, [esp + 0x38]
push ecx
push esi
push edi
add ebp, eax
call fcn.100484d0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
add esp, 0x14
cmp byte [edi + 2], 0
lea eax, [ecx + edx]
mov dword [esp + 0x18], eax
je 0x1004d73f
mov edx, dword [esp + 0x60]
mov dword [esp + 0x1c], edx
mov edx, ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], 0
jmp 0x1004d778
cmp dword [esp + 0x5c], 0
jg 0x1004d98f
mov ecx, dword [esp + 0x58]
jl 0x1004d75c
cmp ecx, 0x7fffffff
ja 0x1004d98f
mov edx, dword [esp + 0x54]
test edx, edx
je 0x1004d98f
add eax, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], ecx
mov edx, ecx
movzx ecx, word [esp + 0x4e]
mov edi, dword [esp + 0x6c]
mov dword [edi], ecx
movzx ecx, word [esp + 0x4c]
movzx edi, word [esp + 0x4a]
add ecx, esi
add ebp, esi
mov dword [esp + 0x2c], ecx
test eax, eax
jle 0x1004d967
jmp 0x1004d7a8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x68]
test edi, edi
jne 0x1004d8f2
cmp byte [ebx + 0x14], 0
mov esi, dword [esp + 0x14]
mov ebp, esi
mov dword [esp + 0x28], ebp
je 0x1004d820
mov ebp, dword [0x100cc4a4]
lea edi, [esi - 2]
lea esp, [esp]
inc esi
inc edi
mov dword [esp + 0x14], esi
cmp esi, 2
jae 0x1004d7df
xor ecx, ecx
jmp 0x1004d80c
mov eax, 0xcccccccd
mul dword [ebx + 0x24]
mov esi, edx
shr esi, 2
xor edx, edx
inc esi
mov eax, edi
div esi
xor edx, edx
mov ecx, eax
mov eax, ebp
imul ecx, esi
div dword [ebx + 0x20]
add ecx, 2
inc eax
cmp ecx, eax
jne 0x1004d808
inc ecx
mov esi, dword [esp + 0x14]
cmp ecx, esi
je 0x1004d7d0
xor edx, edx
mov eax, ebp
div dword [ebx + 0x20]
inc eax
cmp esi, eax
je 0x1004d7d0
mov ebp, dword [esp + 0x28]
push 0
push esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.1004c920
mov esi, dword [esp + 0x38]
add esp, 0x14
cmp byte [ebx + 0x14], 0
mov edi, eax
mov dword [esp + 0x28], edi
je 0x1004d886
test edi, edi
jne 0x1004d971
test ebp, ebp
setne dl
lea ecx, [esp + 0x28]
push ecx
add dl, 3
movzx eax, dl
push ebp
push eax
mov eax, dword [esp + 0x20]
mov ecx, ebx
call fcn.10048140
mov edi, dword [esp + 0x34]
add esp, 0xc
test edi, edi
je 0x1004d88e
test esi, esi
je 0x1004d886
mov ecx, dword [esi + 0x44]
push ecx
call fcn.10044840
add esp, 4
test edi, edi
jne 0x1004d971
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov byte [eax + 3], cl
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004d8c4
mov eax, dword [eax + 0x44]
push eax
call fcn.10044840
add esp, 4
mov eax, dword [esi + 0x40]
mov edx, dword [esp + 0x68]
mov byte [eax], 0
mov byte [eax + 1], 0
mov byte [eax + 2], 0
mov byte [eax + 3], 0
mov ebp, dword [esi + 0x40]
mov edi, dword [ebx + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
add ebp, 4
mov dword [esp + 0x20], esi
sub edi, 4
cmp eax, edi
mov esi, eax
jle 0x1004d8fa
mov esi, edi
test edx, edx
jle 0x1004d912
cmp esi, edx
jle 0x1004d904
mov esi, edx
mov ecx, dword [esp + 0x1c]
push esi
push ecx
push ebp
call sub.MSVCR90.dll_memcpy
jmp 0x1004d91b
push esi
push 0
push ebp
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x74]
sub dword [esp + 0x24], esi
add dword [esp + 0x28], esi
sub eax, esi
add esp, 0xc
add ebp, esi
sub edi, esi
mov dword [esp + 0x68], eax
test eax, eax
jne 0x1004d948
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x68], edx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x18], 0
jg 0x1004d7a0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004d967
mov edx, dword [eax + 0x44]
push edx
call fcn.10044840
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004d985
mov ecx, dword [eax + 0x44]
push ecx
call fcn.10044840
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push 0x100ba064
push 0xc269
push str.database_corruption_at_line__d_of___.10s_
mov eax, 0xb
call fcn.1003c0c0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x40
ret