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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x508a9e
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
push ebx
push esi
push edi
mov eax, dword [0x551bd0]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esp + 0x90]
call fcn.00421090
lea eax, [esp + 0x124]
xor edi, edi
push eax
mov dword [esp + 0x1cc], edi
call fcn.00424430
xor eax, eax
mov dword [esp + 0x74], vtable.Variant.0
mov dword [esp + 0x7c], 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov ebx, vtable.IOBuffer.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x1000
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x94]
push ecx
mov byte [esp + 0x1cc], 3
call fcn.00419380
lea edx, [esp + 0x18c]
push edx
push esi
mov byte [esp + 0x1d0], 4
call fcn.004c601c
add esp, 8
cmp dword [esp + 0x1a0], 0x1b
jge 0x41816c
lea ecx, [esp + 0xec]
mov byte [esp + 0x1c8], 3
call fcn.00419460
lea eax, [esp + 0xec]
push eax
mov dword [esp + 0xf0], vtable.std::ios_base.0
call fcn.004e001e
mov dword [esp + 0x18], ebx
jmp 0x418707
mov ecx, esi
push 0x21
lea esi, [esp + 0xa0]
call fcn.0041a820
test eax, eax
jne 0x4181aa
mov ecx, dword [esp + 0x94]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x9c]
lea ecx, [esp + ecx + 0x94]
or eax, 2
cmp dword [ecx + 0x28], edi
jne 0x4181a3
or eax, 4
push edi
push eax
call fcn.00417d60
mov edx, dword [esp + 0x94]
mov eax, dword [edx + 4]
mov eax, dword [esp + eax + 0x9c]
test al, 6
je 0x4181f4
lea ecx, [esp + 0xec]
mov byte [esp + 0x1c8], 3
call fcn.00419460
lea ecx, [esp + 0xec]
push ecx
mov dword [esp + 0xf0], vtable.std::ios_base.0
call fcn.004e001e
mov dword [esp + 0x18], ebx
jmp 0x418707
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0x34]
push esi
lea edx, [esp + 0x98]
push edx
mov ecx, 1
call fcn.0041a6a0
lea eax, [ebx + 0x35]
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, 1
call fcn.0041a6a0
cmp byte [esi], 0
jne 0x418699
cmp byte [ebx + 0x35], 0xbf
jne 0x418699
lea ecx, [esp + 0x33]
push ecx
lea edx, [esp + 0x98]
push edx
mov ecx, 1
call fcn.0041a6a0
lea eax, [esp + 0x32]
push eax
lea ecx, [esp + 0x98]
push ecx
mov ecx, 1
call fcn.0041a6a0
lea edx, [esp + 0x31]
push edx
lea eax, [esp + 0x98]
push eax
mov ecx, 1
call fcn.0041a6a0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x98]
push edx
mov ecx, 1
call fcn.0041a6a0
mov eax, dword [esp + 0x1a0]
add eax, 0xfffffffa
cmp dword [esp + 0x30], eax
jne 0x418668
lea esi, [ebx + 0x36]
push esi
lea ecx, [esp + 0x98]
push ecx
mov ecx, 4
call fcn.0041a6a0
cmp byte [esi], 0x54
jne 0x418668
cmp byte [ebx + 0x37], 0x43
jne 0x418668
cmp byte [ebx + 0x38], 0x53
jne 0x418668
cmp byte [ebx + 0x39], 0x4f
jne 0x418668
lea esi, [esp + 0x94]
call fcn.00418f50
mov ebx, dword [esp + 0x30]
add ebx, 0xfffffff6
push ebx
mov dword [esp + 0x3c], ebx
call fcn.004a12f2
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, edi
je 0x418668
push esi
lea edx, [esp + 0x98]
push edx
mov ecx, ebx
call fcn.0041a6a0
mov al, byte [esi + 1]
mov cl, byte [esi]
mov byte [esp + 0x34], al
mov byte [esp + 0x35], cl
movzx eax, word [esp + 0x34]
lea edi, [eax + 2]
push esi
lea eax, [esp + 0x18]
call fcn.0041e660
test al, al
je 0x41865f
mov ebx, edi
lea edx, [ebx + 4]
cmp edx, dword [esp + 0x38]
jae 0x41865f
push 0
lea eax, [esp + 0x78]
push eax
lea esi, [esp + 0x1c]
call fcn.004216a0
test al, al
je 0x41865b
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x58]
call fcn.0041bfc0
mov esi, dword [ebp + 8]
lea edx, [esp + 0x54]
push edx
lea ecx, [esi + 0x18]
mov byte [esp + 0x1cc], 5
call fcn.004082d0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1c8], 4
call fcn.00402b90
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x38]
add ebx, 3
cmp byte [ebx + eax], 0
jne 0x4184c7
inc ebx
sub edi, ebx
add ebx, eax
dec edi
push ebx
lea eax, [esp + 0x18]
mov dword [esi + 0x44], 0
call fcn.0041e660
test al, al
je 0x41865b
cmp dword [esp + 0x20], 0
je 0x4185b3
xor eax, eax
mov ebx, vtable.Variant.0
mov edi, 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
push eax
lea eax, [esp + 0x58]
push eax
lea esi, [esp + 0x1c]
mov byte [esp + 0x1d0], 7
call fcn.004216a0
test al, al
je 0x41849d
lea ecx, [esp + 0x3c]
push ecx
mov edx, esi
push edx
lea ecx, [esp + 0x98]
call fcn.00423280
test al, al
je 0x41849d
mov esi, dword [ebp + 8]
lea eax, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x5c]
push ecx
call fcn.0041c470
add esp, 4
call fcn.0041ba70
add dword [esp + 0x24], edi
mov byte [esp + 0x1c8], 6
lea esi, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
call fcn.0041b970
mov byte [esp + 0x1c8], 4
lea esi, [esp + 0x54]
mov dword [esp + 0x54], ebx
call fcn.0041b970
cmp dword [esp + 0x20], 0
jne 0x4183e5
jmp 0x4185b8
mov byte [esp + 0x1c8], 6
lea esi, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
call fcn.0041b970
mov byte [esp + 0x1c8], 4
mov dword [esp + 0x54], ebx
lea esi, [esp + 0x54]
jmp 0x418656
inc ebx
sub edi, ebx
add ebx, eax
dec edi
push ebx
lea eax, [esp + 0x18]
mov dword [esi + 0x44], 3
call fcn.0041e660
test al, al
je 0x41865b
cmp dword [esp + 0x20], 0
je 0x4185b3
xor eax, eax
mov edx, vtable.Variant.0
mov ecx, 1
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
push eax
lea edx, [esp + 0x40]
push edx
lea esi, [esp + 0x1c]
lea ebx, [esp + 0x12c]
mov byte [esp + 0x1d0], 9
call fcn.00424c30
test al, al
je 0x41862c
lea eax, [esp + 0x54]
push eax
mov ecx, esi
push ecx
mov ecx, ebx
call fcn.00424570
test al, al
je 0x41862c
mov esi, dword [ebp + 8]
lea edx, [esp + 0x54]
push edx
push ecx
lea eax, [esp + 0x44]
push eax
call fcn.0041c470
add esp, 4
call fcn.0041ba70
inc dword [esp + 0x24]
mov byte [esp + 0x1c8], 8
mov edi, vtable.Variant.0
lea esi, [esp + 0x54]
mov dword [esp + 0x54], edi
call fcn.0041b970
mov byte [esp + 0x1c8], 4
lea esi, [esp + 0x3c]
mov dword [esp + 0x3c], edi
call fcn.0041b970
cmp dword [esp + 0x20], 0
jne 0x4184f1
mov ebx, vtable.Variant.0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004a12e7
add esp, 4
lea edi, [esp + 0x94]
call fcn.004194d0
mov eax, edi
mov byte [esp + 0x1c8], 3
call fcn.00418780
lea ecx, [esp + 0x14]
call fcn.0041e630
mov byte [esp + 0x1c8], 1
lea esi, [esp + 0x74]
mov dword [esp + 0x74], ebx
call fcn.0041b970
lea ecx, [esp + 0x124]
mov byte [esp + 0x1c8], 0
call fcn.004244d0
mov al, 1
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0x1c8], 8
mov edi, vtable.Variant.0
lea esi, [esp + 0x54]
mov dword [esp + 0x54], edi
call fcn.0041b970
mov byte [esp + 0x1c8], 4
lea esi, [esp + 0x3c]
mov dword [esp + 0x3c], edi
call fcn.0041b970
mov esi, dword [esp + 0x10]
push esi
call fcn.004a12e7
add esp, 4
lea edi, [esp + 0x94]
call fcn.004194d0
mov eax, edi
mov byte [esp + 0x1c8], 3
call fcn.00418780
lea ecx, [esp + 0x14]
call fcn.0041e630
mov byte [esp + 0x1c8], 1
jmp 0x418733
lea esi, [esp + 0x9c]
call fcn.0041a900
test eax, eax
jne 0x4186d3
mov edx, dword [esp + 0x94]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x9c]
lea ecx, [esp + ecx + 0x94]
or eax, 2
cmp dword [ecx + 0x28], edi
jne 0x4186cc
or eax, 4
push edi
push eax
call fcn.00417d60
lea ecx, [esp + 0xec]
mov byte [esp + 0x1c8], 3
call fcn.00419460
lea eax, [esp + 0xec]
push eax
mov dword [esp + 0xf0], vtable.std::ios_base.0
call fcn.004e001e
mov dword [esp + 0x18], vtable.IOBuffer.0
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, edi
je 0x41871f
push eax
call fcn.004a12e7
add esp, 4
mov dword [esp + 0x18], edi
mov byte [esp + 0x1c8], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
lea esi, [esp + 0x74]
mov dword [esp + 0x74], vtable.Variant.0
call fcn.0041b970
lea ecx, [esp + 0x124]
mov byte [esp + 0x1c8], 0
call fcn.004244d0
xor al, al
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4