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

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
xor edi, edi
test eax, eax
jbe 0x401af2
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, dword [ebp + edi*8]
cmp eax, 0x4b
mov ebx, 0x400000
mov edx, 0x100
mov ecx, 0x4000000
ja case.0x4013a7.74
jmp dword [eax*4 + 0x401b00]
cmp dword [esi + 0x8c], 0xffffff
jbe case.0x4013a7.74
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
cmp dword [esi + 0x8c], 0xffffff
jbe 0x4013be
jmp case.0x4013a7.74
mov eax, dword [esi + 0x8c]
cmp eax, dword [ebp + edi*8 + 4]
jne 0x4013be
jmp case.0x4013a7.74
mov eax, dword [esi + 0x1c]
test ah, 0x40
jmp 0x401655
mov eax, dword [esi + 0x1c]
test ah, 0x40
jne 0x4013be
jmp case.0x4013a7.74
mov eax, dword [esi + 0xfc]
jmp 0x401653
test byte [esi + 0x108], 1
jmp 0x401655
test dword [esi + 0x108], 0x20000000
jmp 0x401655
test dword [esi + 0x1c], 0x40000
jmp 0x401655
test byte [esi + 0x1c], 2
jmp 0x401655
test byte [esi + 0x1c], 2
jne 0x4013be
jmp case.0x4013a7.74
mov al, byte [esi + 0x1c]
test al, al
jns 0x4013be
jmp case.0x4013a7.74
test dword [esi + 0x108], 0x200000
jmp 0x401655
test dword [esi + 0x108], ebx
jmp 0x401655
test dword [esi + 0x108], ebx
jne 0x4013be
jmp case.0x4013a7.74
test byte [esi + 0x20], 0x10
jmp 0x401655
test byte [esi + 0x20], 0x10
jne 0x4013be
jmp case.0x4013a7.74
test dword [esi + 0x108], 0x10000000
jmp 0x401655
movzx ecx, word [esi + 0x90]
cmp ecx, dword [ebp + edi*8 + 4]
jne 0x4013be
jmp case.0x4013a7.74
mov edx, dword [esi + 0x50]
cmp edx, dword [ebp + edi*8 + 4]
jne 0x4013be
jmp case.0x4013a7.74
mov eax, dword [esi + 0x1c]
test ah, 8
jmp 0x401655
mov eax, dword [esi + 0x1c]
test ah, 8
jne 0x4013be
jmp case.0x4013a7.74
test dword [esi + 0x1c], ecx
jmp 0x401655
test dword [esi + 0x1c], ecx
jne 0x4013be
jmp case.0x4013a7.74
test byte [esi + 0x108], 0x10
jmp 0x401655
mov eax, dword [esi + 0xd8]
push 1
push 0x4b0
push eax
call fcn.0041fb10
add esp, 0xc
jmp case.0x4013a7.74
mov cx, word [ebp + edi*8 + 4]
cmp cx, word [esi + 0x3a]
jne 0x4013be
jmp case.0x4013a7.74
mov dx, word [ebp + edi*8 + 4]
cmp dx, word [esi + 0x3a]
jmp 0x401655
test byte [esi + 0x1c], 8
jmp 0x401655
mov eax, dword [ebp + edi*8 + 4]
cmp eax, dword [esi + 0x24]
jne 0x4013be
jmp case.0x4013a7.74
mov ecx, dword [ebp + edi*8 + 4]
cmp ecx, dword [esi + 0x28]
jne 0x4013be
jmp case.0x4013a7.74
mov edx, dword [ebp + edi*8 + 4]
cmp edx, dword [esi + 0x28]
jmp 0x401655
movzx eax, byte [esi + 0x38]
cmp dword [ebp + edi*8 + 4], eax
jne 0x4013be
jmp case.0x4013a7.74
mov ecx, dword [esi + 0x48]
mov eax, dword [ebp + edi*8 + 4]
and ecx, 0xffffff
cmp eax, ecx
jne 0x4013be
jmp case.0x4013a7.74
movzx edx, byte [esi + 0x38]
cmp dword [ebp + edi*8 + 4], edx
jae 0x4013be
jmp case.0x4013a7.74
mov eax, dword [ebp + edi*8 + 4]
cmp eax, dword [esi + 0x10]
jae 0x4013be
jmp case.0x4013a7.74
mov ecx, dword [ebp + edi*8 + 4]
cmp ecx, dword [esi + 0x4c]
jne 0x4013be
jmp case.0x4013a7.74
mov edx, dword [ebp + edi*8 + 4]
cmp edx, dword [esi + 0x4c]
jae 0x4013be
jmp case.0x4013a7.74
mov eax, dword [esi + 0x108]
test ah, 0x20
jmp 0x401655
test dword [esi + 0x1c], edx
jmp 0x401655
test dword [esi + 0x1c], edx
jne 0x4013be
jmp case.0x4013a7.74
test dword [esi + 0x108], 0x20000
jmp 0x401655
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4013be
mov ecx, dword [ebp + edi*8 + 4]
push ecx
jmp 0x40164a
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4013be
mov edx, dword [ebp + edi*8 + 4]
push edx
push eax
call fcn.00423000
add esp, 8
test eax, eax
je 0x4013be
jmp case.0x4013a7.74
mov eax, dword [ebp + edi*8 + 4]
cmp eax, dword [esi + 0x130]
jne 0x4013be
jmp case.0x4013a7.74
mov ecx, dword [esi + 0x130]
cmp ecx, dword [ebp + edi*8 + 4]
jbe 0x4013be
jmp case.0x4013a7.74
mov edx, dword [esi + 0x130]
cmp edx, dword [ebp + edi*8 + 4]
jae 0x4013be
jmp case.0x4013a7.74
mov eax, dword [ebp + edi*8 + 4]
cmp eax, dword [esi + 0x134]
jne 0x4013be
jmp case.0x4013a7.74
mov ecx, dword [esi + 0x130]
cmp ecx, dword [esi + 0x134]
jne 0x4013be
jmp case.0x4013a7.74
mov edx, dword [esi + 0x134]
cmp edx, dword [ebp + edi*8 + 4]
jbe 0x4013be
jmp case.0x4013a7.74
mov eax, dword [esi + 0x134]
cmp eax, dword [ebp + edi*8 + 4]
jae 0x4013be
jmp case.0x4013a7.74
mov eax, dword [ebp + edi*8 + 4]
mov ecx, dword [eax]
cmp ecx, dword [esi + 0x70]
jne 0x4013be
mov edx, dword [eax + 4]
cmp edx, dword [esi + 0x74]
jne 0x4013be
mov ecx, dword [eax + 8]
cmp ecx, dword [esi + 0x78]
jne 0x4013be
mov edx, dword [eax + 0xc]
cmp edx, dword [esi + 0x7c]
jne 0x4013be
jmp case.0x4013a7.74
mov eax, dword [ebp + edi*8 + 4]
cmp eax, dword [esi + 0x104]
jne 0x4013be
jmp case.0x4013a7.74
mov ecx, dword [esi + 0x54]
cmp ecx, dword [ebp + edi*8 + 4]
jbe 0x4013be
jmp case.0x4013a7.74
movzx edx, word [esi + 0x5e]
cmp edx, dword [ebp + edi*8 + 4]
jbe 0x4013be
jmp case.0x4013a7.74
movzx eax, word [esi + 0x5e]
cmp eax, dword [ebp + edi*8 + 4]
jne 0x4013be
jmp case.0x4013a7.74
movzx ecx, word [esi + 0x5c]
cmp ecx, dword [ebp + edi*8 + 4]
jbe 0x4013be
jmp case.0x4013a7.74
mov edx, dword [esi + 0x58]
cmp edx, dword [ebp + edi*8 + 4]
jbe 0x4013be
jmp case.0x4013a7.74
mov eax, dword [esi + 0x58]
cmp eax, dword [ebp + edi*8 + 4]
jne 0x4013be
jmp case.0x4013a7.74
mov ecx, dword [esi + 0x54]
cmp ecx, dword [ebp + edi*8 + 4]
jae 0x4013be
jmp case.0x4013a7.74
mov edx, dword [esi + 0x54]
cmp edx, dword [ebp + edi*8 + 4]
jne 0x4013be
jmp case.0x4013a7.74
movzx eax, word [esi + 0x5c]
cmp eax, dword [ebp + edi*8 + 4]
jne 0x4013be
jmp case.0x4013a7.74
mov ecx, dword [esi + 0x13c]
cmp ecx, dword [ebp + edi*8 + 4]
jne 0x4013be
jmp case.0x4013a7.74
mov edx, dword [esi + 0x13c]
cmp edx, dword [ebp + edi*8 + 4]
jbe 0x4013be
jmp case.0x4013a7.74
mov eax, dword [esi + 0x140]
cmp eax, dword [ebp + edi*8 + 4]
jne 0x4013be
jmp case.0x4013a7.74
mov ecx, dword [esi + 0x140]
cmp ecx, dword [ebp + edi*8 + 4]
jbe 0x4013be
jmp case.0x4013a7.74
mov edx, dword [esi + 0x138]
cmp edx, dword [ebp + edi*8 + 4]
jne 0x4013be
jmp case.0x4013a7.74
mov eax, dword [esi + 0x138]
cmp eax, dword [ebp + edi*8 + 4]
jb 0x4013be
jmp case.0x4013a7.74
mov ecx, dword [esi + 0x11c]
cmp ecx, dword [ebp + edi*8 + 4]
jb 0x4013be
jmp case.0x4013a7.74
mov edx, dword [esi + 0x11c]
cmp edx, dword [ebp + edi*8 + 4]
ja 0x4013be
jmp case.0x4013a7.74
mov ecx, dword [ebp + edi*8 + 4]
mov eax, dword [esi + 0xd8]
xor edx, edx
mov ebx, 0x4021
inc ecx
div ebx
mov edx, dword [edx*4 + 0x469b00]
jmp 0x4018b0
test edx, edx
je 0x4013be
mov eax, dword [esi + 0xd8]
cmp dword [edx + 0xd8], eax
jne 0x4018cd
dec ecx
je case.0x4013a7.74
mov edx, dword [edx + 0x18]
jmp 0x4018b0
mov edx, dword [esi + 0xd8]
mov ebx, dword [ebp + edi*8 + 4]
and ebx, edx
xor edx, edx
mov eax, ebx
mov ecx, 0x4021
div ecx
mov eax, dword [0x481c04]
mov eax, dword [eax + edx*4]
test eax, eax
mov dword [esp + 0x10], edx
je 0x40190b
lea esp, [esp]
cmp dword [eax + 4], ebx
je 0x401950
mov eax, dword [eax]
test eax, eax
jne 0x401900
push 0x45a200
call fcn.0041f570
add esp, 4
test eax, eax
je 0x4013be
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ebx
mov edx, dword [0x481c04]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov dword [eax + 8], 1
mov edx, dword [esi + 0x130]
mov dword [eax + 0xc], edx
mov edx, dword [0x481c04]
mov dword [edx + ecx*4], eax
jmp case.0x4013a7.74
mov ebx, dword [eax + 8]
mov edx, dword [eax + 0xc]
inc ebx
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0x130]
add edx, ecx
mov dword [eax + 0xc], edx
jmp case.0x4013a7.74
mov eax, dword [0x462e18]
sub eax, dword [esi + 0x2c]
test eax, eax
mov ecx, eax
jg 0x40197d
mov ecx, 1
mov eax, dword [esi + 0xf4]
xor edx, edx
div ecx
cmp eax, dword [ebp + edi*8 + 4]
jbe 0x4013be
jmp case.0x4013a7.74
mov edx, dword [0x462e18]
mov ecx, dword [esi + 0xec]
mov eax, dword [ebp + edi*8 + 4]
sub edx, ecx
cmp edx, eax
jbe 0x4013be
jmp case.0x4013a7.74
mov eax, dword [ebp + edi*8 + 4]
mov ecx, dword [esi + 0xf4]
mov edx, dword [eax + 0xf4]
add edx, ecx
mov ebx, dword [eax + 0xf8]
mov dword [eax + 0xf4], edx
mov edx, dword [esi + 0xf8]
add ebx, edx
mov edx, dword [eax + 0x11c]
mov dword [eax + 0xf8], ebx
mov ecx, dword [esi + 0x11c]
mov ebx, dword [eax + 0x130]
add edx, ecx
mov dword [eax + 0x11c], edx
mov edx, dword [esi + 0x130]
add ebx, edx
mov edx, dword [eax + 0x138]
mov dword [eax + 0x130], ebx
mov ecx, dword [esi + 0x138]
mov ebx, dword [eax + 0x13c]
add edx, ecx
mov dword [eax + 0x138], edx
mov edx, dword [esi + 0x13c]
add ebx, edx
mov edx, dword [eax + 0x140]
mov dword [eax + 0x13c], ebx
mov ecx, dword [esi + 0x140]
mov ebx, dword [eax + 0x144]
add edx, ecx
mov dword [eax + 0x140], edx
mov edx, dword [esi + 0x144]
add ebx, edx
mov edx, dword [eax + 0x154]
mov dword [eax + 0x144], ebx
mov ecx, dword [esi + 0x154]
mov ebx, dword [eax + 0x158]
add edx, ecx
mov dword [eax + 0x154], edx
mov edx, dword [esi + 0x158]
add ebx, edx
mov edx, dword [eax + 0x54]
mov dword [eax + 0x158], ebx
mov ecx, dword [esi + 0x54]
mov ebx, dword [eax + 0x58]
add edx, ecx
mov dword [eax + 0x54], edx
mov edx, dword [esi + 0x58]
add ebx, edx
mov dword [eax + 0x58], ebx
mov cx, word [esi + 0x5c]
add word [eax + 0x5c], cx
mov dx, word [esi + 0x5e]
add word [eax + 0x5e], dx
mov ecx, dword [esi + 0x68]
mov edx, dword [eax + 0x68]
mov ebx, dword [eax + 0x6c]
add edx, ecx
mov dword [eax + 0x68], edx
mov edx, dword [esi + 0x6c]
add ebx, edx
mov edx, dword [eax + 0x84]
mov dword [eax + 0x6c], ebx
mov ecx, dword [esi + 0x84]
add edx, ecx
mov ecx, dword [eax + 0x94]
mov dword [eax + 0x84], edx
mov edx, dword [esi + 0x94]
add ecx, edx
mov dword [eax + 0x94], ecx
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jb 0x40138b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret