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

Disassembly:
sub esp, 0x398
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x394], eax
mov eax, dword [esp + 0x3bc]
push ebx
mov ebx, dword [esp + 0x3b8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3a0]
push ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3ac]
push esi
mov esi, dword [esp + 0x3bc]
push edi
mov dword [esp + 0x18], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x294], eax
mov dword [esp + 0x298], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
call fcn.0040ffa9
test eax, eax
jne 0x4105fb
xor ecx, ecx
mov edx, ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [edi]
test ecx, ecx
je 0x4105f9
imul ebp, edx, 0xc
mov eax, dword [edi + ebp + 0x3c]
test eax, eax
je 0x410448
cmp eax, 0x21
je 0x410448
cmp eax, 0x30101
je 0x410448
cmp eax, 0x303011b
jne 0x41035f
cmp edx, 3
jne 0x410622
mov eax, dword [esp + 0x3b0]
mov esi, dword [eax + 0x10]
mov ebx, dword [eax + 8]
sub esi, ebx
mov edi, dword [eax + 0x14]
mov ebp, dword [eax + 0xc]
sbb edi, ebp
xor eax, eax
cmp eax, edi
jne 0x410614
push esi
push 0x603458
call dword [0x603458]
pop ecx
pop ecx
mov ecx, dword [esp + 0x28]
mov dword [ecx + 8], eax
test eax, eax
jne 0x410218
test esi, esi
jne 0x410614
add ebx, dword [esp + 0x3b8]
adc ebp, dword [esp + 0x3bc]
push ebp
push ebx
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.0040d2bd
pop ecx
pop ecx
test eax, eax
jne 0x4105fb
push edi
mov edi, dword [esp + 0x2c]
mov ecx, ebx
push esi
mov edx, dword [edi + 8]
call fcn.0040ff01
pop ecx
pop ecx
test eax, eax
jne 0x4105fb
mov ecx, dword [esp + 0x294]
test cl, 3
jne 0x41061d
mov edx, dword [esp + 0x298]
test dl, 3
jne 0x41061d
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
lea eax, [edx + ebp]
add eax, ecx
cmp eax, ebx
jne 0x41061d
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], eax
add eax, ebp
mov dword [esp + 0x60], eax
mov eax, dword [edi]
mov dword [esp + 0x54], eax
add eax, ecx
mov dword [esp + 0x64], eax
mov ecx, 0x81
mov eax, dword [edi + 4]
mov dword [esp + 0x58], eax
add eax, edx
mov dword [esp + 0x68], eax
mov eax, dword [edi + 8]
lea edi, [esp + 0x8c]
mov dword [esp + 0x5c], eax
add eax, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x78], 9
lea eax, [ebx + esi]
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x7c], eax
mov byte [esp + 0x83], al
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, 0x4000400
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
call fcn.004107ad
test eax, eax
jne 0x4105fb
mov ecx, eax
lea edx, [esp + 0x60]
mov eax, dword [esp + ecx*4 + 0x50]
cmp eax, dword [edx + ecx*4]
jne 0x41061d
inc ecx
cmp ecx, 4
jb 0x41031c
cmp dword [esp + 0x88], 0
jne 0x41061d
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x74]
jne 0x41061d
cmp dword [esp + 0x78], 0
jne 0x41061d
mov edi, dword [esp + 0x1c]
jmp 0x4105e6
cmp edx, 1
jne 0x410622
mov cl, byte [edi + ebp + 0x41]
cmp eax, 3
jne 0x4103b3
cmp cl, dl
jne 0x410622
xor eax, eax
push 0x100
push eax
lea eax, [esp + 0x2a8]
push eax
call fcn.0051c010
mov eax, dword [edi + ebp + 0x38]
add esp, 0xc
mov ecx, dword [esp + 0x30]
push ebx
movzx edx, byte [eax + ecx]
lea ecx, [esp + 0x2a4]
push esi
inc edx
call fcn.00410fb8
pop ecx
pop ecx
jmp 0x4105e6
test cl, cl
jne 0x410622
cmp eax, 0x3030103
je 0x41042a
cmp eax, 0x3030205
je 0x41041d
cmp eax, 0x3030401
je 0x410410
cmp eax, 0x3030501
je 0x410403
cmp eax, 0x3030701
je 0x4103f6
cmp eax, 0x3030805
jne 0x410622
push ecx
push ecx
mov edx, ebx
mov ecx, esi
call fcn.00410c04
jmp 0x4103ac
push ecx
push ecx
mov edx, ebx
mov ecx, esi
call fcn.00410af5
jmp 0x4103ac
push ecx
push ecx
mov edx, ebx
mov ecx, esi
call fcn.00410a99
jmp 0x4103ac
push ecx
push ecx
mov edx, ebx
mov ecx, esi
call fcn.00410dd0
jmp 0x4103ac
push ecx
push ecx
mov edx, ebx
mov ecx, esi
call fcn.00410b83
jmp 0x4103ac
xor eax, eax
mov edx, ebx
push ecx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.00410c9d
add esp, 0xc
jmp 0x4105e6
xor eax, eax
mov edi, esi
mov edx, eax
mov esi, ebx
mov dword [esp + 0x2c], edx
cmp ecx, 4
jne 0x4104fc
mov ecx, dword [esp + 0x34]
xor edi, edi
mov eax, dword [esp + 0x40]
mov ebx, ecx
shl ebx, 2
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 2
mov esi, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov dword [esp + 0x4c], edi
mov edx, dword [esp + ebx + 0x44]
mov dword [esp + 0x2c], edx
cmp ecx, 2
jae 0x4104d2
cmp edi, eax
jne 0x410614
push esi
push 0x603458
call dword [0x603458]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4104b8
test esi, esi
jne 0x410614
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub eax, ebx
mov dword [eax + 4], edi
lea eax, [esp + 0x298]
sub eax, ebx
mov dword [eax], esi
jmp 0x4104fc
jne 0x410622
cmp eax, edi
ja 0x410618
mov edi, dword [esp + 0x14]
jb 0x4104ee
cmp esi, edi
ja 0x410618
sub edi, esi
mov dword [esp + 0x3c], esi
add edi, dword [esp + 0x20]
mov dword [esp + 0x38], edi
mov ebx, dword [esp + 0x3b0]
mov ecx, dword [ebx + edx*8]
mov eax, dword [ebx + edx*8 + 4]
mov edx, dword [ebx + edx*8 + 8]
mov ebx, dword [esp + 0x2c]
sub edx, ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x3b0]
mov ebx, dword [edx + ebx*8 + 0xc]
sbb ebx, eax
add ecx, dword [esp + 0x3b8]
adc eax, dword [esp + 0x3bc]
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0040d2bd
pop ecx
pop ecx
test eax, eax
jne 0x4105fb
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + ebp + 0x3c]
test eax, eax
jne 0x410583
mov eax, dword [esp + 0x24]
cmp eax, esi
jne 0x41061d
xor ecx, ecx
cmp ebx, ecx
jne 0x41061d
mov ecx, dword [esp + 0x18]
mov edx, edi
push ebx
push eax
call fcn.0040ff01
pop ecx
pop ecx
test eax, eax
jne 0x4105fb
mov edi, dword [esp + 0x1c]
jmp 0x4105de
cmp eax, 0x30101
jne 0x4105af
mov eax, dword [esp + 0x24]
push ecx
push esi
push edi
mov edi, dword [esp + 0x28]
push dword [esp + 0x24]
push ebx
mov ecx, dword [edi + ebp + 0x38]
movzx edx, byte [edi + ebp + 0x41]
add ecx, dword [esp + 0x44]
push eax
call fcn.0040fc0f
jmp 0x4105d7
cmp eax, 0x21
jne 0x410622
mov eax, dword [esp + 0x24]
push ecx
push esi
push edi
mov edi, dword [esp + 0x28]
push dword [esp + 0x24]
push ebx
mov ecx, dword [edi + ebp + 0x38]
movzx edx, byte [edi + ebp + 0x41]
add ecx, dword [esp + 0x44]
push eax
call fcn.0040fd84
add esp, 0x18
test eax, eax
jne 0x4105fb
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov ecx, dword [edi]
inc edx
mov dword [esp + 0x34], edx
cmp edx, ecx
jb 0x41019f
xor eax, eax
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x398
ret
push 2
jmp 0x41061a
push 5
pop eax
jmp 0x4105fb
xor eax, eax
inc eax
jmp 0x4105fb
push 4
jmp 0x41061a