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

Disassembly:
push 0xffffffffffffffff
push 0x5ac2c4
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x69e298]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x69e298]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [ecx + 0xd4]
mov ebp, dword [eax]
mov esi, dword [ecx + 0xc0]
lea edi, [ecx + 0xc0]
mov dword [esp + 0x28], ecx
lea esp, [esp]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [edi]
cmp esi, ebx
je 0x41eab1
cmp esi, eax
je 0x41eab6
call fcn.00589a8c
cmp ebp, dword [esp + 0x24]
je 0x41eb10
cmp esi, ebx
jne 0x41eaee
call fcn.00589a8c
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x41ead1
call fcn.00589a8c
cmp byte [ebp + 0x6d], bl
je 0x41eaf2
push ebp
push esi
lea ecx, [esp + 0xdc]
push ecx
mov ecx, edi
call fcn.0041e980
mov esi, dword [eax]
mov ebp, dword [eax + 4]
jmp 0x41eaa0
mov eax, dword [esi]
jmp 0x41eac7
cmp esi, ebx
jne 0x41eb0c
call fcn.00589a8c
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x41eb07
call fcn.00589a8c
mov ebp, dword [ebp]
jmp 0x41eaa0
mov eax, dword [esi]
jmp 0x41eafd
mov eax, dword [edi + 0x14]
mov esi, dword [eax]
mov ebp, dword [edi]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebp
nop
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 0xd4]
add eax, 0xc0
mov eax, dword [eax]
cmp ebp, ebx
je 0x41eb39
cmp ebp, eax
je 0x41eb3e
call fcn.00589a8c
cmp esi, edi
je 0x41ef65
cmp ebp, ebx
jne 0x41ebbe
call fcn.00589a8c
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x41eb5b
call fcn.00589a8c
cmp byte [esi + 0xd4], bl
lea edi, [esi + 8]
je 0x41ef42
lea esi, [edi + 0x1c]
mov ecx, esi
call fcn.00435790
test al, al
jne 0x41ef1c
mov ecx, esi
call fcn.004355b0
test al, al
jne 0x41ed87
jmp 0x41eb90
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call fcn.004358d0
mov ebp, 3
push 4
mov dword [esp + 0x19c], ebp
call fcn.00589ab7
add esp, 4
cmp eax, ebx
je 0x41ebc3
lea ecx, [esp + 0x30]
mov dword [eax], ecx
jmp 0x41ebc5
mov eax, dword [ebp]
jmp 0x41eb51
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x4c], ebx
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x68]
push eax
mov ecx, ebp
mov byte [esp + 0x1a0], 5
call fcn.0041e120
cmp dword [esp + 0x2c], 0x5f
jne 0x41ec7d
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x41ec27
call fcn.00589a8c
mov edx, dword [esp + 0x3c]
push edx
push edi
lea eax, [esp + 0xc0]
push eax
mov ecx, ebp
call fcn.0042e470
or dword [esp + 0x1c], 1
cmp dword [edi + 0xc8], 4
mov ecx, dword [edi + 0xc4]
mov byte [esp + 0x198], 6
jb 0x41ec60
mov edx, dword [edi + 0xb4]
jmp 0x41ec66
lea edx, [edi + 0xb4]
push ecx
mov ecx, dword [eax + 0x14]
push edx
push ecx
push ebx
mov ecx, eax
call fcn.00401920
mov byte [esp + 0x1b], 1
test eax, eax
je 0x41ec81
mov byte [esp + 0x1b], bl
test byte [esp + 0x1c], 1
je 0x41ecc3
and dword [esp + 0x1c], 0xfffffffe
cmp dword [esp + 0xd0], 4
jb 0x41eca7
mov edx, dword [esp + 0xbc]
push edx
call fcn.0058984a
add esp, 4
mov ebp, 3
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xbc], ebx
jmp 0x41ecc8
mov ebp, 3
cmp byte [esp + 0x1b], bl
jne 0x41eeb4
cmp dword [esp + 0x60], 4
jb 0x41ece6
mov eax, dword [esp + 0x4c]
push eax
call fcn.0058984a
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x41ed39
mov ebp, dword [esp + 0x40]
cmp eax, ebp
je 0x41ed30
lea esi, [eax + 0x18]
cmp dword [esi], 4
jb 0x41ed16
mov eax, dword [esi - 0x14]
push eax
call fcn.0058984a
add esp, 4
mov dword [esi], 3
mov dword [esi - 4], ebx
mov dword [esi - 0x14], ebx
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, ebp
jne 0x41ed05
mov eax, dword [esp + 0x3c]
push eax
call fcn.0058984a
add esp, 4
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.0058984a
add esp, 4
cmp dword [esp + 0x7c], 4
mov dword [esp + 0x198], 0xffffffff
jb 0x41ed71
mov eax, dword [esp + 0x68]
push eax
call fcn.0058984a
add esp, 4
lea esi, [edi + 0x1c]
mov ecx, esi
call fcn.004355b0
test al, al
je 0x41eb90
mov ebp, dword [esp + 0x20]
push 1
push 0x224
push str.._scene_adv_sceneadv1.cpp
lea ecx, [esp + 0xe8]
call fcn.00496f50
push 0x29
push 0x5d2a70
lea ecx, [esp + 0x88]
mov dword [esp + 0x1a0], ebx
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
call fcn.00401db0
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0xa0]
push edx
mov byte [esp + 0x1a0], 1
call fcn.00495c50
add esp, 8
lea ecx, [edi + 0xb0]
push ecx
push eax
lea edx, [esp + 0xe4]
push edx
mov byte [esp + 0x1a4], 2
call fcn.00496550
add esp, 8
push eax
call fcn.00496550
add esp, 8
cmp dword [esp + 0xb4], 4
jb 0x41ee35
mov eax, dword [esp + 0xa0]
push eax
call fcn.0058984a
add esp, 4
cmp dword [esp + 0x98], 0x10
mov dword [esp + 0xb4], 3
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x198], bl
jb 0x41ee6f
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0058984a
add esp, 4
lea ecx, [esp + 0xdc]
call fcn.00496c20
test al, al
je 0x41ee80
int3
lea ecx, [esp + 0x158]
mov dword [esp + 0x198], 0xffffffff
call fcn.00401f70
lea edx, [esp + 0x158]
push edx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00588e93
add esp, 4
jmp 0x41ef0c
cmp dword [esp + 0x60], 4
jb 0x41eec8
mov eax, dword [esp + 0x4c]
push eax
call fcn.0058984a
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x4c], ebx
call fcn.00482440
cmp dword [esp + 0x7c], 4
mov dword [esp + 0x198], 0xffffffff
jb 0x41eefc
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0058984a
add esp, 4
mov dword [esp + 0x7c], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov ecx, esi
call fcn.00435580
mov dword [edi + 0x68], eax
mov byte [edi + 0xcc], bl
mov esi, dword [esp + 0x24]
cmp ebp, ebx
jne 0x41ef60
call fcn.00589a8c
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x41ef35
call fcn.00589a8c
mov edx, dword [esi]
mov dword [esp + 0x24], edx
mov esi, edx
jmp 0x41eb20
cmp byte [edi + 0x64], bl
je 0x41ef20
mov eax, dword [edi + 0x6c]
cmp eax, ebx
je 0x41ef54
dec eax
mov dword [edi + 0x6c], eax
jmp 0x41ef20
mov ecx, dword [esp + 0x28]
push edi
call fcn.0041e400
jmp 0x41ef20
mov eax, dword [ebp]
jmp 0x41ef2b
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.00589f78
add esp, 0x188
ret
push ebx
push ebp
mov ebx, ecx
lea ebp, [ebx + 0x150]
push esi
mov esi, dword [ebp]
test esi, esi
je 0x420994
push edi
lea edi, [esi + 0x1a0]
mov ecx, edi
call fcn.00404fb0
fcomp dword [0x6465c4]
fnstsw ax
test ah, 0x41
jne 0x420980
mov ecx, esi
call fcn.0040a1c0
lea ecx, [esi + 0x120]
call fcn.0043deb0
mov eax, dword [edi + 8]
test eax, eax
je 0x420993
cmp eax, dword [edi + 0xc]
jle 0x420993
inc dword [edi + 0xc]
jmp 0x420993
mov eax, dword [edi + 8]
test eax, eax
je 0x42098c
cmp eax, dword [edi + 0xc]
jg 0x420993
mov ecx, ebp
call fcn.00487d50
pop edi
mov eax, dword [ebx + 0x2d0]
cmp eax, 1
jne 0x4209c3
lea esi, [ebx + 0x2d8]
mov ecx, esi
call fcn.004b08b0
test al, al
jne 0x4209e1
mov ecx, esi
call fcn.004b15d0
mov dword [ebx + 0x2d0], 2
jmp 0x4209e1
cmp eax, 2
jne 0x4209e1
lea ecx, [ebx + 0x2d8]
call fcn.004b08f0
test al, al
jne 0x4209e1
mov dword [ebx + 0x2d0], 0
lea ecx, [ebx + 0x180]
call fcn.0040a1c0
lea ecx, [ebx + 0x2a0]
call fcn.0043deb0
lea ecx, [ebx + 0x2bc]
call fcn.0040f930
pop esi
pop ebp
mov ecx, ebx
pop ebx
jmp 0x41ea40