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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x503c9e
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
push ebx
push esi
push edi
mov eax, dword [0x54eb90]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esp + 0x90]
call fcn.0041bd50
lea eax, [esp + 0x124]
xor edi, edi
push eax
mov dword [esp + 0x1cc], edi
call fcn.0041f100
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.00413fa0
lea edx, [esp + 0x18c]
push edx
push esi
mov byte [esp + 0x1d0], 4
call fcn.004c1a08
add esp, 8
cmp dword [esp + 0x1a0], 0x1b
jge 0x412d7c
lea ecx, [esp + 0xec]
mov byte [esp + 0x1c8], 3
call fcn.00414080
lea eax, [esp + 0xec]
push eax
mov dword [esp + 0xf0], vtable.std::ios_base.0
call fcn.004dd55e
mov dword [esp + 0x18], ebx
jmp 0x41331b
mov ecx, esi
push 0x21
lea esi, [esp + 0xa0]
call fcn.00415410
test eax, eax
jne 0x412dba
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 0x412db3
or eax, 4
push edi
push eax
call fcn.00412940
mov edx, dword [esp + 0x94]
mov eax, dword [edx + 4]
mov eax, dword [esp + eax + 0x9c]
test al, 6
je 0x412e04
lea ecx, [esp + 0xec]
mov byte [esp + 0x1c8], 3
call fcn.00414080
lea ecx, [esp + 0xec]
push ecx
mov dword [esp + 0xf0], vtable.std::ios_base.0
call fcn.004dd55e
mov dword [esp + 0x18], ebx
jmp 0x41331b
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0x34]
push esi
lea edx, [esp + 0x98]
push edx
mov ecx, 1
call fcn.00415290
lea eax, [ebx + 0x35]
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, 1
call fcn.00415290
cmp byte [esi], 0
jne 0x4132ad
cmp byte [ebx + 0x35], 0xbf
jne 0x4132ad
lea ecx, [esp + 0x33]
push ecx
lea edx, [esp + 0x98]
push edx
mov ecx, 1
call fcn.00415290
lea eax, [esp + 0x32]
push eax
lea ecx, [esp + 0x98]
push ecx
mov ecx, 1
call fcn.00415290
lea edx, [esp + 0x31]
push edx
lea eax, [esp + 0x98]
push eax
mov ecx, 1
call fcn.00415290
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x98]
push edx
mov ecx, 1
call fcn.00415290
mov eax, dword [esp + 0x1a0]
add eax, 0xfffffffa
cmp dword [esp + 0x30], eax
jne 0x41327c
lea esi, [ebx + 0x36]
push esi
lea ecx, [esp + 0x98]
push ecx
mov ecx, 4
call fcn.00415290
cmp byte [esi], 0x54
jne 0x41327c
cmp byte [ebx + 0x37], 0x43
jne 0x41327c
cmp byte [ebx + 0x38], 0x53
jne 0x41327c
cmp byte [ebx + 0x39], 0x4f
jne 0x41327c
lea esi, [esp + 0x94]
call fcn.00413b60
mov ebx, dword [esp + 0x30]
add ebx, 0xfffffff6
push ebx
mov dword [esp + 0x3c], ebx
call fcn.0049ef27
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, edi
je 0x41327c
push esi
lea edx, [esp + 0x98]
push edx
mov ecx, ebx
call fcn.00415290
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.00419300
test al, al
je 0x413273
mov ebx, edi
lea edx, [ebx + 4]
cmp edx, dword [esp + 0x38]
jae 0x413273
push 0
lea eax, [esp + 0x78]
push eax
lea esi, [esp + 0x1c]
call fcn.0041c360
test al, al
je 0x41326f
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x58]
call fcn.00416b90
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x5c]
push edx
lea ecx, [esi + 0x18]
mov byte [esp + 0x1d4], 5
call fcn.004028d0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1c8], 4
call fcn.00402be0
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x38]
add ebx, 3
cmp byte [ebx + eax], 0
jne 0x4130db
inc ebx
sub edi, ebx
add ebx, eax
dec edi
push ebx
lea eax, [esp + 0x18]
mov dword [esi + 0x44], 0
call fcn.00419300
test al, al
je 0x41326f
cmp dword [esp + 0x20], 0
je 0x4131c7
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.0041c360
test al, al
je 0x4130b1
lea ecx, [esp + 0x3c]
push ecx
mov edx, esi
push edx
lea ecx, [esp + 0x98]
call fcn.0041df40
test al, al
je 0x4130b1
mov esi, dword [ebp + 8]
lea eax, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x5c]
push ecx
call fcn.00417040
add esp, 4
call fcn.00416640
add dword [esp + 0x24], edi
mov byte [esp + 0x1c8], 6
lea esi, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
call fcn.00416540
mov byte [esp + 0x1c8], 4
lea esi, [esp + 0x54]
mov dword [esp + 0x54], ebx
call fcn.00416540
cmp dword [esp + 0x20], 0
jne 0x412ff9
jmp 0x4131cc
mov byte [esp + 0x1c8], 6
lea esi, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
call fcn.00416540
mov byte [esp + 0x1c8], 4
mov dword [esp + 0x54], ebx
lea esi, [esp + 0x54]
jmp 0x41326a
inc ebx
sub edi, ebx
add ebx, eax
dec edi
push ebx
lea eax, [esp + 0x18]
mov dword [esi + 0x44], 3
call fcn.00419300
test al, al
je 0x41326f
cmp dword [esp + 0x20], 0
je 0x4131c7
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.0041f900
test al, al
je 0x413240
lea eax, [esp + 0x54]
push eax
mov ecx, esi
push ecx
mov ecx, ebx
call fcn.0041f240
test al, al
je 0x413240
mov esi, dword [ebp + 8]
lea edx, [esp + 0x54]
push edx
push ecx
lea eax, [esp + 0x44]
push eax
call fcn.00417040
add esp, 4
call fcn.00416640
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.00416540
mov byte [esp + 0x1c8], 4
lea esi, [esp + 0x3c]
mov dword [esp + 0x3c], edi
call fcn.00416540
cmp dword [esp + 0x20], 0
jne 0x413105
mov ebx, vtable.Variant.0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0049ef32
add esp, 4
lea edi, [esp + 0x94]
call fcn.004140f0
mov eax, edi
mov byte [esp + 0x1c8], 3
call fcn.00413390
lea ecx, [esp + 0x14]
call fcn.004192d0
mov byte [esp + 0x1c8], 1
lea esi, [esp + 0x74]
mov dword [esp + 0x74], ebx
call fcn.00416540
lea ecx, [esp + 0x124]
mov byte [esp + 0x1c8], 0
call fcn.0041f1a0
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.00416540
mov byte [esp + 0x1c8], 4
lea esi, [esp + 0x3c]
mov dword [esp + 0x3c], edi
call fcn.00416540
mov esi, dword [esp + 0x10]
push esi
call fcn.0049ef32
add esp, 4
lea edi, [esp + 0x94]
call fcn.004140f0
mov eax, edi
mov byte [esp + 0x1c8], 3
call fcn.00413390
lea ecx, [esp + 0x14]
call fcn.004192d0
mov byte [esp + 0x1c8], 1
jmp 0x413347
lea esi, [esp + 0x9c]
call fcn.004154f0
test eax, eax
jne 0x4132e7
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 0x4132e0
or eax, 4
push edi
push eax
call fcn.00412940
lea ecx, [esp + 0xec]
mov byte [esp + 0x1c8], 3
call fcn.00414080
lea eax, [esp + 0xec]
push eax
mov dword [esp + 0xf0], vtable.std::ios_base.0
call fcn.004dd55e
mov dword [esp + 0x18], vtable.IOBuffer.0
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, edi
je 0x413333
push eax
call fcn.0049ef32
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.00416540
lea ecx, [esp + 0x124]
mov byte [esp + 0x1c8], 0
call fcn.0041f1a0
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