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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3120
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x665ebc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0xa8
mov dword [esi + 4], ebx
call fcn.00564e10
add esp, 4
cmp eax, ebx
je 0x413821
push esi
call fcn.00410470
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x413826
mov dword [ebp - 0x14], ebx
mov edi, ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov ax, word [ebx + 0xe]
mov word [edi + 0xe], ax
mov cx, word [ebx + 0x12]
mov word [edi + 0x12], cx
mov dx, word [ebx + 0x10]
mov word [edi + 0x10], dx
mov eax, dword [ebx + 0x58]
mov dword [edi + 0x58], eax
mov ecx, dword [ebx + 0x5c]
mov dword [edi + 0x5c], ecx
mov edx, dword [ebx + 0x60]
mov dword [edi + 0x60], edx
mov eax, dword [ebx + 0x64]
mov dword [edi + 0x64], eax
mov ecx, dword [ebx + 0x68]
mov dword [edi + 0x68], ecx
mov edx, dword [ebx + 0x6c]
mov dword [edi + 0x6c], edx
mov eax, dword [ebx + 0x70]
mov dword [edi + 0x70], eax
mov ecx, dword [ebx + 0x24]
mov dword [edi + 0x24], ecx
mov edx, dword [ebx + 0x28]
mov dword [edi + 0x28], edx
mov eax, dword [ebx + 0x78]
lea ecx, [ebx + 0x84]
mov dword [edi + 0x78], eax
push ecx
lea eax, [edi + 0x84]
call fcn.0040ffe0
lea edx, [ebx + 0x94]
push edx
lea eax, [edi + 0x94]
call fcn.0040ffe0
lea ecx, [ebx + 0x30]
lea eax, [edi + 0x30]
push ecx
push eax
call fcn.0040f910
lea edx, [ebx + 0x44]
push edx
lea esi, [edi + 0x44]
push esi
call fcn.0040f910
mov eax, esi
call fcn.0041dac0
mov al, byte [ebx + 0xa4]
mov byte [edi + 0xa4], al
mov cl, byte [ebx + 0x76]
mov ebx, edi
mov byte [edi + 0x76], cl
call fcn.00411920
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.00413a90
mov edx, dword [esi + 0x1c]
mov eax, dword [ebp + 0x10]
cmp ax, word [edx + 8]
jae 0x413902
mov ecx, 0xffff
cmp ax, cx
je 0x413902
mov bl, 1
jmp 0x413904
xor bl, bl
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 0x3c]
mov edx, dword [ebp + 0x14]
shr eax, 4
and al, 1
movzx ecx, al
push ecx
push edx
mov esi, edi
call fcn.004114d0
cmp byte [ebp + 0x18], 0
je 0x413939
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
mov dword [edi + 0x14], ecx
mov edx, dword [eax + 0x18]
mov dword [edi + 0x18], edx
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x1c], eax
test bl, bl
je 0x4139de
mov esi, 0xffff
cmp dword [edi + 0x9c], esi
jg 0x413968
cmp dword [edi + 0x8c], esi
jg 0x413968
lea eax, [edi + 0x30]
push eax
call fcn.0041da70
cmp eax, esi
setle al
test al, al
jne 0x413976
mov ecx, dword [ebp + 8]
push 0xd3
push ecx
call fcn.00413300
movzx eax, word [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x1c]
test eax, eax
jl 0x4139eb
cmp eax, dword [ecx + 8]
jge 0x4139eb
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x14]
mov ebx, dword [edx + eax*4]
lea eax, [edx + eax*4]
mov eax, dword [ebx + 0x2c]
xor edx, edx
cmp word [ecx + 0x24], dx
jne 0x4139ab
mov esi, dword [ecx + 0x28]
test esi, esi
jbe 0x4139ab
add eax, esi
adc edx, edx
mov esi, dword [ecx + 4]
push edx
push eax
mov al, 1
call fcn.00402a30
mov eax, dword [ebp + 0x10]
push 0
push eax
mov eax, ebx
mov ebx, dword [ebp + 8]
call fcn.00414270
movzx eax, word [ebp + 0x10]
push edi
push eax
mov eax, dword [ebx + 0x1c]
call fcn.004155b0
movzx esi, word [ebp + 0x10]
mov dword [ebx + 4], edi
jmp 0x413a1d
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x1c]
mov ebx, dword [esi + 8]
test ebx, ebx
jge 0x4139f0
call fcn.00566b22
lea edi, [ebx + 1]
call fcn.00415990
mov edx, dword [esi + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [edx + ebx*4], eax
mov dword [ecx + 4], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
movzx esi, bx
call eax
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx + 0x24]
cmp byte [ecx + 0x25], 0
je 0x413a35
push esi
push edi
push ebx
call fcn.00414cd0
mov edx, dword [ebx + 0x24]
mov word [edx + 0x26], si
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14