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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41d240
push eax
mov edx, dword [esp + 0x2c]
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
mov ebx, dword [esp + 0x84]
push ebp
push esi
mov esi, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0x9c]
cmp edx, esi
jne 0x416e80
mov ebp, dword [esp + 0xa4]
mov ecx, dword [esp + 0x94]
mov eax, ebp
sub eax, ecx
sar eax, 4
jmp 0x416eb4
mov ecx, dword [esp + 0x94]
mov eax, edx
sub eax, esi
mov ebp, ebx
sar eax, 2
add eax, 0xffffff
sub ebp, ecx
shl eax, 8
sar ebp, 4
add eax, ebp
mov ebp, dword [esp + 0xa4]
sub ebp, edi
sar ebp, 4
add eax, ebp
mov ebp, dword [esp + 0xa4]
cmp eax, 0x10
jg 0x416f04
push 0
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], edi
mov edi, dword [esp + 0xc4]
mov dword [eax + 4], edi
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0xb0]
mov edx, esp
mov dword [edx], eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], esi
call fcn.00417830
add esp, 0x24
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], esi
call fcn.00403d20
cmp eax, 0x10
jle 0x417148
lea ecx, [esp + 0x5c]
push 1
push ecx
lea ecx, [esp + 0x34]
call fcn.00416ba0
mov ecx, eax
call fcn.00417310
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x20], esp
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0040f230
lea edx, [esp + 0x3c]
xor edi, edi
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0xa8], edi
call fcn.00403d20
cdq
sub eax, edx
lea ecx, [esp + 0x3c]
sar eax, 1
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00403ac0
mov ecx, eax
call fcn.00417310
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.0040f230
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 1
call fcn.00417310
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.0040f230
push esi
mov dword [esp + 0xc8], 0xffffffff
call fcn.00417ad0
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
add esp, 0x24
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [esp + 0x64]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x50]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x54]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x58]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.00417cb0
add esp, 0x34
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x2c]
push edx
call fcn.00403d20
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
call fcn.00403d20
cmp esi, eax
push edi
jg 0x4170c7
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [esp + 0x58]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x60]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x64]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x68]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00417320
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x6c]
add esp, 0x24
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
jmp 0x41712f
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x68]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x44]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.00417320
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x6c]
add esp, 0x24
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
call fcn.00403d20
cmp eax, 0x10
jg 0x416f49
jmp 0x41714a
xor edi, edi
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x98]
push 0x10
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
call fcn.00416b30
mov eax, dword [esp + 0x4c]
push edi
mov ecx, dword [esp + 0x54]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x78]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x7c]
mov dword [edx + 8], eax
mov eax, dword [esp + 0xb0]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xb4]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0xb8]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xbc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.00417830
add esp, 0x24
lea ecx, [esp + 0x8c]
push 0x10
call fcn.00416b30
cmp dword [esp + 0x94], ebp
je 0x4172ef
jmp 0x4171f5
xor edi, edi
lea ecx, [esp + 0x8c]
call fcn.00417310
mov esi, dword [eax + 4]
sub esp, 0x10
cmp esi, edi
mov dword [esp + 0x28], esp
mov ebp, esp
jne 0x417217
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dl, byte [esp + 0x9c]
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp], dl
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x417264
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ebx + ecx], 0
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0xb4]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xb8]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.00417620
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
add eax, 0x10
add esp, 0x20
cmp eax, ecx
mov dword [esp + 0x94], eax
jne 0x4172e2
mov eax, dword [esp + 0x98]
add eax, 4
mov dword [esp + 0x98], eax
mov eax, dword [eax]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x90], edx
cmp eax, dword [esp + 0xa4]
jne 0x4171f3
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret