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

Disassembly:
sub esp, 0x3c
push ebx
push edi
mov edx, ecx
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x14], edx
mov dword [esp + 8], edi
lea eax, [edx + 0xb4]
lea esp, [esp]
cmp edi, ebx
jl 0x49508c
cmp edi, 0x40
jge 0x49508c
cmp dword [eax], ebx
je 0x495078
inc edi
add eax, 0x94
cmp edi, 0x40
jb 0x495060
cmp edi, 0x40
mov dword [esp + 8], edi
jne 0x4950b6
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x3c
ret 0x18
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], edi
mov dword [esp + 0x60], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x24]
push ecx
call fcn.00514dd6
mov ecx, dword [edx + 0x25b0]
push ebp
push esi
mov esi, dword [esp + 0x60]
lea eax, [edi + esi]
cmp ecx, eax
jle 0x4950cb
mov eax, ecx
cmp esi, ebx
mov dword [edx + 0x25b0], eax
mov dword [esp + 0x14], ebx
jle 0x4951fc
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 0x58]
mov eax, edi
imul eax, eax, 0x94
lea esi, [eax + edx + 0xb0]
mov eax, 0x50
sub eax, ecx
mov dword [esp + 0x18], eax
nop
cmp byte [esp + 0x64], bl
je 0x495144
cmp byte [0x541155], bl
je 0x495125
cmp edi, ebx
jl 0x495220
cmp edi, 0x40
jge 0x495220
push 0x48
push ebx
push ebx
jmp 0x49515e
cmp edi, ebx
jl 0x495246
cmp edi, 0x40
jge 0x495246
mov edx, dword [esp + 0x54]
push 0x48
push ebx
push ebx
push ebp
push edx
push 4
jmp 0x495166
cmp edi, ebx
jl 0x49526c
cmp edi, 0x40
jge 0x49526c
mov eax, dword [esp + 0x5c]
push 8
push eax
push 1
mov ecx, dword [esp + 0x60]
push ebp
push ecx
push 2
mov ecx, esi
call fcn.0044fcb0
mov edx, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x70], edx
mov eax, dword [esi + 0x34]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x50]
lea edx, [ecx + esi]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x495184
mov ecx, dword [esp + 0x60]
mov dword [esi + 0x88], ecx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x8c], 0x64
mov dword [esi + 0x90], ebx
mov edx, dword [0x5b7488]
mov eax, dword [0x5b748c]
inc edx
mov dword [0x5b7488], edx
mov edx, dword [esi + 0x48]
add eax, edx
mov dword [0x5b748c], eax
mov eax, dword [esp + 0x14]
inc eax
add esi, 0x94
inc edi
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x495100
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
cmp edi, ebx
jl 0x495292
cmp edi, 0x40
jge 0x495292
pop esi
pop ebp
mov dword [edx + edi*4 + 0x25b4], ebx
mov eax, edi
pop edi
pop ebx
add esp, 0x3c
ret 0x18
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x2c]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x38]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x44]
push edx
call fcn.00514dd6
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x68], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x44]
push ecx
call fcn.00514dd6
int3