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

Disassembly:
sub esp, 0x3e0
mov eax, dword [0x42d0a4]
xor eax, esp
mov dword [esp + 0x3dc], eax
mov eax, dword [0x42e4c0]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40242e
cmp eax, dword [0x42e4d0]
jg 0x40242e
mov ebp, 1
cmp dword [0x4503be], ebp
jne 0x401da0
mov ebx, dword [0x4500f8]
mov dword [0x4500c8], edi
mov esi, 0x4500d0
mov edi, 0x4503a8
call fcn.00403e00
test eax, eax
je 0x401d90
mov dword [0x4500c8], ebp
call dword [0x42513c]
push 0x3e8
mov dword [0x4501c4], eax
call dword [0x425138]
jmp 0x40246c
push 0x1388
call dword [0x425138]
jmp 0x40246c
push 0x450250
mov ecx, 0x42e4d0
call fcn.00408600
test eax, eax
je 0x402414
mov edx, dword [0x42eff0]
mov eax, dword [0x42efe8]
mov ecx, dword [0x42efec]
push 0x3c6
mov dword [0x450358], edx
mov dword [0x450350], eax
mov eax, dword [0x42eff4]
mov dword [0x450354], ecx
mov ecx, dword [0x42ef64]
lea edx, [esp + 0x24]
push edi
push edx
mov dword [0x45035c], eax
mov dword [0x4501cc], ecx
call fcn.00414720
mov eax, dword [0x4500c8]
add esp, 0xc
cmp eax, ebp
jne 0x401ec3
xor eax, eax
movzx ecx, word [eax + 0x4500cc]
mov word [esp + eax + 0xd2], cx
add eax, 2
cmp cx, di
jne 0x401e11
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x45011a]
mov word [esp + eax + 0x112], cx
add eax, 2
cmp cx, di
jne 0x401e30
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x4500fc]
mov word [esp + eax + 0xd6], cx
add eax, 2
cmp cx, di
jne 0x401e50
mov cl, byte [0x428a90]
mov eax, dword [0x428a8c]
mov byte [0x4400cc], cl
mov dword [0x4400c8], eax
mov ecx, 0xf1
lea esi, [esp + 0x20]
mov edi, 0x4400cc
rep movsd dword es:[edi], dword [esi]
push ebp
movsw word es:[edi], word [esi]
push 0x4400c8
mov esi, 0x4503a8
mov dword [0x42e4c8], 0x3ca
call fcn.00403f00
mov dword [0x4500c8], 2
call dword [0x42513c]
mov dword [0x4501c4], eax
jmp 0x40246c
cmp eax, 2
jne 0x401efd
mov esi, dword [0x42513c]
call esi
sub eax, dword [0x4501c4]
cmp eax, 0x1388
jbe 0x40246c
mov dword [0x4500c8], edi
call esi
mov esi, 0x4503a8
mov dword [0x4501c4], eax
call fcn.00403ed0
jmp 0x40246c
cmp eax, 3
jne 0x4020a5
mov esi, dword [0x42513c]
call esi
sub eax, dword [0x4501c4]
cmp eax, 0x3e8
jbe 0x40246c
cmp dword [0x42e4c0], 6
mov eax, 0xb4
mov ecx, 0x82
jne 0x401f3c
mov eax, 0x320
mov ecx, 0x32
mov edx, dword [0x450350]
push ecx
mov ecx, dword [0x450354]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x450358]
mov dword [eax + 4], ecx
mov ecx, dword [0x45035c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, 0x42e4d0
call fcn.00408670
test eax, eax
je 0x401ff8
mov eax, dword [0x42e4c0]
cmp eax, 5
ja 0x401fd4
push 0x428b54
push 0x42eff8
call fcn.004129c5
add esp, 8
test eax, eax
je 0x401fb8
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x42eff8]
mov word [eax + 0x4502d0], cx
add eax, 2
cmp cx, di
jne 0x401fa0
jmp 0x402016
push 0x428b5c
push 0x42eff8
call fcn.004129c5
add esp, 8
test eax, eax
je 0x402016
mov dword [esp + 0x38], ebp
jmp 0x402016
cmp eax, 6
jne 0x402016
xor eax, eax
jmp 0x401fe0
movzx ecx, word [eax + 0x42eff8]
mov word [eax + 0x4502d0], cx
add eax, 2
cmp cx, di
jne 0x401fe0
jmp 0x402016
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x428b78]
mov word [eax + 0x4502d0], cx
add eax, 2
cmp cx, di
jne 0x402000
call esi
mov edx, dword [0x428b68]
mov dword [0x4501c4], eax
mov al, byte [0x428b6c]
mov byte [0x4400cc], al
mov dword [0x4400c8], edx
xor eax, eax
jmp 0x402040
movzx ecx, word [eax + 0x450250]
mov word [esp + eax + 0x3c], cx
add eax, 2
cmp cx, di
jne 0x402040
xor eax, eax
jmp 0x402060
movzx ecx, word [eax + 0x4502d0]
mov word [esp + eax + 0x78], cx
add eax, 2
cmp cx, di
jne 0x402060
mov ecx, 0xf1
lea esi, [esp + 0x20]
mov edi, 0x4400cc
rep movsd dword es:[edi], dword [esi]
push ebp
movsw word es:[edi], word [esi]
push 0x4400c8
mov esi, 0x4503a8
mov dword [0x42e4c8], 0x3ca
call fcn.00403f00
jmp 0x40246c
cmp eax, 4
jne 0x40246c
call dword [0x42513c]
mov ecx, eax
mov eax, 0x3e8
cdq
idiv dword [0x4501b4]
sub ecx, dword [0x4501c4]
cmp ecx, eax
jbe 0x40246c
mov edx, dword [0x450358]
mov esi, dword [0x450350]
mov ebx, dword [0x450354]
mov dword [esp + 0x14], edi
mov edi, dword [0x45035c]
mov eax, edx
mov ecx, edi
xor ebp, ebp
sub eax, esi
sub ecx, ebx
cmp dword [0x42e4c0], 6
jne 0x402113
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
xor eax, eax
jmp 0x402187
cmp dword [0x42e4c0], 5
ja 0x40216e
cmp dword [0x4501c8], 3
jne 0x40216e
mov al, byte [0x428b74]
mov edx, dword [0x428b70]
mov byte [0x4400cc], al
mov eax, dword [0x4503a0]
test eax, eax
mov dword [0x4400c8], edx
je 0x40246c
push 0x42e4c8
call eax
mov eax, dword [0x4503a4]
add esp, 4
test eax, eax
je 0x40246c
push 0x4400cc
call eax
add esp, 4
jmp 0x4023d6
mov esi, dword [esp + 0x14]
sub esp, 0x10
mov edx, esp
mov dword [edx], ebp
mov dword [edx + 4], esi
mov dword [edx + 8], eax
mov eax, dword [0x4501cc]
mov dword [edx + 0xc], ecx
push 0x450380
call fcn.00402f50
test eax, eax
je 0x40246c
mov esi, dword [0x450380]
test esi, esi
je 0x40246c
mov eax, dword [0x42e4c0]
test eax, eax
jne 0x4021e8
push 0xd0
push 0x140
push eax
push 0x10e
push esi
push 0x450368
call fcn.00403440
push 0x14
push 0
push 0xbc
push 0x140
push 0x21c
mov edx, 0x104
jmp 0x402387
cmp eax, 1
jne 0x402223
push 0xd0
push 0x140
push 0
push 0x64
push esi
push 0x450368
call fcn.00403440
push 0x14
push 0
push 0xbc
push 0x140
push 0x203
mov edx, 0xe6
jmp 0x402387
cmp eax, 2
je 0x402356
cmp eax, 3
je 0x402356
cmp eax, 4
jne 0x402290
push 0xad
push 0x140
push 6
push 0x10e
push esi
push 0x450368
call fcn.00403440
push 0
push 0xf0
push 0x14
push 0x50
push 6
push esi
mov edx, 0x2a8
mov ebx, 0x450368
call fcn.004035d0
push 0x14
push 0
push 0x9b
push 0x140
push 0x24e
mov edx, 0x14a
jmp 0x402387
cmp eax, 5
jne 0x4022eb
push 0xd0
push 0x140
push 0
push 0x69
push esi
push 0x450368
call fcn.00403440
push 0
push 0x8c
push 0x14
push 0xb4
push 0
push esi
mov edx, 0x1b3
mov ebx, 0x450368
call fcn.004035d0
push 0x14
push 0
push 0xbc
push 0x140
push 0x1ea
mov edx, 0xe6
jmp 0x402387
cmp eax, 6
jne 0x402323
push 0xdc
push 0x190
push 0
push 0x5a
push esi
push 0x450368
call fcn.00403440
push 0x17
push 0
push 0xc5
push 0x190
push 0x226
mov edx, 0xfa
jmp 0x402387
push 0xc8
push 0x154
push 0
push 0x78
push esi
push 0x450368
call fcn.00403440
push 0x1e
push 0
push 0xaa
push 0x154
push 0x226
mov edx, 0x14a
jmp 0x402387
push 0xbc
push 0x140
push 0
push 0x6e
push esi
push 0x450368
call fcn.00403440
push 0x14
push 0
push 0xa8
push 0x140
push 0x186
mov edx, 0x82
push esi
mov ebx, 0x450368
call fcn.004035d0
mov edx, dword [0x428b70]
mov al, byte [0x428b74]
mov ecx, dword [0x4501bc]
push 0x42e4c8
push 0x4400cc
mov dword [0x4400c8], edx
mov edx, dword [0x45036c]
push ecx
mov byte [0x4400cc], al
mov eax, dword [0x450368]
push edx
push eax
call fcn.00408da0
add esp, 0x14
test eax, eax
jne 0x40246c
mov ecx, dword [0x42e4c8]
add ecx, 0xffffffff
cmp ecx, 0xfffa
ja 0x40246c
add dword [0x42e4c8], 4
push 0
push 0x4400c8
mov esi, 0x4503a8
call fcn.00403f00
test eax, eax
je 0x40246c
call dword [0x42513c]
mov dword [0x4501c4], eax
jmp 0x40246c
mov dword [0x450350], edi
mov dword [0x450354], edi
mov dword [0x450358], edi
mov dword [0x45035c], edi
jmp 0x40246c
mov dword [0x4500c8], edi
call dword [0x42513c]
cmp dword [0x4503be], 3
mov dword [0x4501c4], eax
jl 0x40246c
mov eax, dword [0x4503ba]
cmp eax, edi
je 0x402462
push eax
call dword [fcn.00425278]
test eax, eax
jne 0x402462
mov dword [0x4503ba], edi
mov dword [0x4503be], 1
mov ecx, dword [esp + 0x3ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004122be
add esp, 0x3e0
ret