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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xe8
mov eax, dword [fcn.00404b69]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xd8], 2
push edi
mov dword [ebp - 0x24], ebx
mov byte [esi + 0x1b5], bl
je 0x4038e7
mov ecx, dword [esi + 0xd0]
call fcn.004053a8
test eax, 0xfffffffd
je 0x4038e7
mov ecx, esi
call fcn.00402a98
mov ecx, esi
mov dword [esi + 0x1bc], eax
call fcn.00402312
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x54]
mov eax, dword [esi + 0xd8]
xor edi, edi
inc edi
cmp eax, edi
je 0x4039d2
cmp eax, 2
jle 0x40395f
cmp eax, 4
jle 0x4039a1
cmp eax, 6
je 0x40391f
cmp eax, 7
jne 0x40395f
mov dword [ebp - 0x24], 3
mov dword [esi + 0xd8], edi
jmp 0x40395f
push ecx
push ecx
lea eax, [esi + 0xec]
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [esi + 0xe4]
mov ecx, esp
push eax
call fcn.00401037
push ebx
mov ecx, esi
call fcn.004037c6
test al, al
jne 0x40479e
mov byte [esi + 0x1b4], 1
mov dword [esi + 0xd8], edi
mov dword [ebp - 0x24], edi
mov eax, dword [esi + 0xd8]
dec eax
je 0x4043d8
dec eax
je 0x40429d
dec eax
je 0x403b3a
dec eax
je 0x403a79
dec eax
je 0x40456a
sub eax, 4
jne 0x40479e
lea ecx, [ebp - 0x34]
call fcn.0040102d
lea ecx, [ebp - 0x34]
jmp 0x404799
push ecx
push ecx
lea eax, [esi + 0xec]
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [esi + 0xe4]
mov ecx, esp
push eax
call fcn.00401037
push ebx
mov ecx, esi
call fcn.004037c6
test al, al
je 0x40395f
jmp 0x40479e
mov ecx, dword [esi + 0xd0]
call fcn.004053a8
test eax, 0xffffff7f
jne 0x4039fd
mov dword [esi + 0xdc], 8
mov dword [esi + 0xd8], 5
jmp 0x40395f
push ecx
push ecx
lea eax, [esi + 0xec]
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [esi + 0xe4]
mov ecx, esp
push eax
call fcn.00401037
push ebx
mov ecx, esi
call fcn.004037c6
test al, al
jne 0x40479e
cmp byte [esi + 0x1b4], bl
jne 0x40395c
mov ecx, dword [esi + 0xd0]
call fcn.004053a8
test al, 2
jg 0x40395c
lea edi, [esi + 0xdc]
cmp dword [edi], 0xffffffff
mov byte [esi + 0x1b5], 1
jne 0x403a64
mov dword [edi], 0x2fa
mov ecx, dword [esi + 0xd0]
call fcn.004053a8
and dword [edi], eax
mov dword [ebp - 0x24], ebx
jmp 0x40395f
test byte [esi + 0xdc], 8
je 0x403ab3
mov ecx, esi
call fcn.00402312
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x24], eax
movzx eax, byte [esi + 0x1b7]
push eax
push ecx
push ecx
lea eax, [esi + 0x17c]
mov ecx, esp
push eax
add edi, 0x20
call fcn.00401037
mov ecx, dword [ebp - 0x24]
push 8
call dword [edi]
test byte [esi + 0xdc], 0x10
je 0x403aed
mov ecx, esi
call fcn.00402312
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x24], eax
movzx eax, byte [esi + 0x1b7]
push eax
push ecx
push ecx
lea eax, [esi + 0x17c]
mov ecx, esp
push eax
add edi, 0x20
call fcn.00401037
mov ecx, dword [ebp - 0x24]
push 0x10
call dword [edi]
mov ecx, esi
call fcn.00402312
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
push ecx
push ecx
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x18c]
mov ecx, esp
push eax
add edi, 0x24
call fcn.00401037
push dword [esi + 0xdc]
mov ecx, dword [ebp - 0x24]
call dword [edi]
cmp byte [esi + 0x1b4], bl
jne 0x403b2e
cmp byte [esi + 0x1b8], bl
je 0x40479e
mov byte [esi + 0x1b6], 1
jmp 0x40479e
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [0x40c028]
cmp dword [esi + 0xdc], 0xffffffff
jne 0x403b5e
mov dword [esi + 0xdc], 0x2fa
mov ecx, dword [esi + 0xd0]
call fcn.004053a8
and dword [esi + 0xdc], eax
mov ecx, esi
call fcn.00402312
mov ecx, dword [eax + 0xc]
push dword [esi + 0xdc]
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, al
jne 0x403ba8
cmp byte [esi + 0x1b7], bl
jne 0x403ba8
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x3f5
push 2
push ebx
mov ecx, esi
call fcn.004028c5
cmp byte [esi + 0x1b9], bl
je 0x403be1
mov ecx, esi
call fcn.00402312
mov ecx, dword [eax + 0xc]
push dword [esi + 0xdc]
mov eax, dword [ecx]
call dword [eax + 0x50]
test al, al
je 0x403be1
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x411
push 3
push ebx
mov ecx, esi
call fcn.004028c5
test byte [esi + 0xdc], 8
je 0x403f64
lea edi, [esi + 0x18c]
push edi
lea ecx, [ebp - 0x3c]
call fcn.00401037
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401037
lea eax, [esi + 0x17c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401037
push edi
lea ecx, [ebp - 0x34]
call fcn.00401037
push ecx
push ecx
lea eax, [esi + 0xa0]
mov ecx, esp
push eax
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x3c]
call fcn.00401510
push ecx
push ecx
lea eax, [esi + 0xa8]
mov ecx, esp
push eax
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.00401510
push ecx
push ecx
lea edi, [esi + 0xc0]
mov ecx, esp
push edi
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x44]
call fcn.00401510
push ecx
push ecx
mov ecx, esp
push edi
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x34]
call fcn.00401510
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
call fcn.00401037
push ebx
push 0x40ca34
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x50]
call fcn.00401835
lea ecx, [ebp - 0x70]
call fcn.00401471
push ecx
push ecx
mov ecx, esp
push 0x40ca28
call fcn.0040140d
lea ecx, [ebp - 0x50]
call fcn.004014d9
mov ecx, esi
call fcn.00402312
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x24], eax
movzx eax, byte [esi + 0x1b7]
push eax
push ecx
push ecx
lea eax, [esi + 0x17c]
mov ecx, esp
add edi, 0x18
push eax
call fcn.00401037
mov ecx, dword [ebp - 0x24]
push 8
call dword [edi]
mov ecx, esi
call fcn.00402312
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
push ecx
push ecx
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x18c]
mov ecx, esp
push eax
add edi, 0x24
call fcn.00401037
mov ecx, dword [ebp - 0x24]
push 8
call dword [edi]
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00401037
push 0xd
push ebx
push ebx
mov ecx, esi
call fcn.004028c5
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push 8
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.0040681c
test al, al
je 0x403f3c
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
push 0xf
push ebx
push ebx
mov ecx, esi
call fcn.004028c5
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push 4
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.0040681c
test al, al
je 0x403f3c
push ecx
push ecx
lea eax, [ebp - 0x50]
mov ecx, esp
push eax
call fcn.00401037
push 0x10
push ebx
push ebx
mov ecx, esi
call fcn.004028c5
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
push 1
push 2
push ecx
push ecx
lea eax, [ebp - 0x50]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.0040681c
test al, al
je 0x403f3c
cmp dword [ebp - 0x1c], 5
jne 0x403df8
cmp dword [ebp - 0x18], ebx
je 0x403eec
mov edi, 0x200
test dword [esi + 0xdc], edi
je 0x403eec
push ecx
push ecx
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.00401037
push 0x13
push ebx
push ebx
mov ecx, esi
call fcn.004028c5
mov ecx, dword [esi + 0xd0]
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.00406921
sub eax, ebx
je 0x403ec8
dec eax
je 0x403eaa
dec eax
jne 0x403eec
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push edi
push ecx
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.0040681c
push ecx
push ecx
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.00405d22
push ecx
push ecx
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.00401037
push 0x414
push 2
push ebx
mov ecx, esi
call fcn.004028c5
jmp 0x403eec
push ecx
push ecx
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.00401037
push 0x410
push 2
push ebx
mov ecx, esi
call fcn.004028c5
jmp 0x403f3c
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push edi
push ecx
push ecx
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.0040681c
mov ecx, esi
call fcn.00402312
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x24], eax
add edi, 0x1c
cmp byte [esi + 0x1b8], bl
sete al
movzx eax, al
push eax
push ecx
push ecx
lea eax, [esi + 0x17c]
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [ebp - 0x24]
push 8
call dword [edi]
lea ecx, [ebp - 0x50]
call fcn.00401471
lea ecx, [ebp - 0x34]
call fcn.00401471
lea ecx, [ebp - 0x44]
call fcn.00401471
lea ecx, [ebp - 0x2c]
call fcn.00401471
lea ecx, [ebp - 0x3c]
call fcn.00401471
test byte [esi + 0xdc], 0x10
je 0x40479e
lea edi, [esi + 0x18c]
push edi
lea ecx, [ebp - 0x50]
call fcn.00401037
push edi
lea ecx, [ebp - 0x3c]
call fcn.00401037
lea eax, [esi + 0x17c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.00401037
push edi
lea ecx, [ebp - 0x34]
call fcn.00401037
push ecx
push ecx
lea eax, [esi + 0xb0]
mov ecx, esp
push eax
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x50]
call fcn.00401510
push ecx
push ecx
lea eax, [esi + 0xb8]
mov ecx, esp
push eax
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x3c]
call fcn.00401510
push ecx
push ecx
lea edi, [esi + 0xc0]
mov ecx, esp
push edi
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.00401510
push ecx
push ecx
mov ecx, esp
push edi
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x34]
call fcn.00401510
mov ecx, esi
call fcn.00402312
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x40], eax
movzx eax, byte [esi + 0x1b7]
push eax
push ecx
push ecx
mov ecx, esp
push dword [ebp - 0x24]
add edi, 0x18
call fcn.00401037
mov ecx, dword [ebp - 0x40]
push 0x10
call dword [edi]
mov ecx, esi
call fcn.00402312
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
push ecx
push ecx
mov dword [ebp - 0x40], eax
lea eax, [esi + 0x18c]
mov ecx, esp
push eax
add edi, 0x24
call fcn.00401037
mov ecx, dword [ebp - 0x40]
push 0x10
call dword [edi]
push ecx
push ecx
lea eax, [ebp - 0x50]
mov ecx, esp
push eax
call fcn.00401037
push 0xe
push ebx
push ebx
mov ecx, esi
call fcn.004028c5
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push 0x10
push ecx
push ecx
lea eax, [ebp - 0x50]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.0040681c
test al, al
je 0x40427d
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00401037
push 0xf
push ebx
push ebx
mov ecx, esi
call fcn.004028c5
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push 4
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.0040681c
test al, al
je 0x40427d
push ecx
push ecx
mov ecx, esp
lea edi, [esi + 0x18c]
push edi
call fcn.00401037
push 0x11
push ebx
push ebx
mov ecx, esi
call fcn.004028c5
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push 0x100
push ecx
push ecx
mov ecx, esp
push edi
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.0040681c
test al, al
je 0x40427d
cmp dword [ebp - 0x1c], 5
jne 0x40413d
cmp dword [ebp - 0x18], ebx
je 0x404231
mov edi, 0x200
test dword [esi + 0xdc], edi
je 0x404231
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
push 0x13
push ebx
push ebx
mov ecx, esi
call fcn.004028c5
mov ecx, dword [esi + 0xd0]
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.00406921
sub eax, ebx
je 0x40420d
dec eax
je 0x4041ef
dec eax
jne 0x404231
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push edi
push ecx
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.0040681c
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.00405d22
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
push 0x414
push 2
push ebx
mov ecx, esi
call fcn.004028c5
jmp 0x404231
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
push 0x410
push 2
push ebx
mov ecx, esi
call fcn.004028c5
jmp 0x40427d
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push edi
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.0040681c
mov ecx, esi
call fcn.00402312
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
add edi, 0x1c
cmp byte [esi + 0x1b8], bl
mov dword [ebp - 0x40], eax
sete al
movzx eax, al
push eax
push ecx
push ecx
mov ecx, esp
push dword [ebp - 0x24]
call fcn.00401037
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [ebp - 0x50]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [ebp - 0x40]
push 0x10
call dword [edi]
lea ecx, [ebp - 0x34]
call fcn.00401471
lea ecx, [ebp - 0x2c]
call fcn.00401471
lea ecx, [ebp - 0x3c]
call fcn.00401471
lea ecx, [ebp - 0x50]
jmp 0x404799
push 0x40c9d8
push ebx
push ebx
call dword [0x40c004]
mov dword [ebp - 0x30], eax
call dword [section..rdata]
push ecx
push ecx
cmp eax, 0xb7
mov ecx, esp
sete byte [ebp - 0x45]
call fcn.0040102d
cmp byte [ebp - 0x45], bl
push 0x3f3
sete al
movzx eax, al
push 3
push eax
mov ecx, esi
call fcn.004028c5
lea eax, [esi + 0xe4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401037
push ebx
push 0x40ca34
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401835
lea ecx, [ebp - 0x58]
call fcn.00401471
push ecx
push ecx
mov ecx, esp
push 0x40ca28
call fcn.0040140d
lea ecx, [ebp - 0x2c]
call fcn.004014d9
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.004061a6
test al, al
jne 0x40435c
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push ebx
push 2
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd0]
call fcn.0040681c
push 0x10
call fcn.00404ae4
mov edi, eax
pop ecx
cmp edi, ebx
je 0x404383
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
push esi
mov ecx, edi
call fcn.0040726f
mov edi, eax
jmp 0x404385
xor edi, edi
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
jne 0x4043a6
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x3ef
push 3
push ebx
mov ecx, esi
call fcn.004028c5
jmp 0x4043ab
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, edi
call fcn.004071ce
push edi
call fcn.00404af8
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00401471
cmp dword [ebp - 0x30], ebx
je 0x40479e
push dword [ebp - 0x30]
call dword [0x40c008]
jmp 0x40479e
mov ecx, esi
call fcn.00402312
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 8]
push esi
mov dword [esi + 0x1a8], eax
mov edx, dword [eax]
push 0x4069e0
mov ecx, eax
call dword [edx]
push 0x40c988
push ebx
push ebx
call dword [0x40c004]
mov dword [ebp - 0x30], eax
call dword [section..rdata]
lea edi, [esi + 0x1c0]
cmp dword [edi], ebx
je 0x40442d
push ecx
push ecx
lea eax, [esi + 0x1c4]
mov ecx, esp
push eax
call fcn.00401037
push dword [edi]
jmp 0x4044ab
cmp eax, 0xb7
jne 0x404444
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x3f3
jmp 0x4044ab
mov eax, dword [esi + 0x1bc]
cmp eax, ebx
je 0x404474
dec eax
je 0x404464
dec eax
jne 0x4044c9
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x3fe
jmp 0x4044ab
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x3f4
jmp 0x4044ab
cmp byte [esi + 0x1b5], bl
je 0x4044b7
cmp byte [esi + 0x1b7], bl
jne 0x4044b7
mov ecx, esi
call fcn.00402312
mov ecx, dword [eax + 0xc]
push dword [esi + 0xdc]
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, al
jne 0x4044b7
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x3f5
push 2
push ebx
mov ecx, esi
call fcn.004028c5
jmp 0x4044c9
push dword [ebp - 0x24]
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx]
push 6
push 3
call dword [eax + 0xc]
cmp byte [esi + 0x1b5], bl
je 0x4044e0
mov ecx, esi
call fcn.00402312
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x70]
mov ecx, dword [esi + 0x1a8]
mov dword [esi + 0xd8], ebx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [ebp - 0x24], eax
cmp dword [esi + 0x1a8], ebx
je 0x404517
mov ecx, esi
call fcn.00402312
mov ecx, dword [eax + 0xc]
push dword [esi + 0x1a8]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esi + 0x1a8], ebx
mov edi, 0x40f
cmp dword [ebp - 0x24], edi
jne 0x404552
mov ecx, esi
call fcn.00402312
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x7c]
test al, al
jne 0x4043c1
push ecx
push ecx
mov ecx, esp
mov byte [esi + 0x1cc], bl
call fcn.0040102d
push edi
push 2
push ebx
mov ecx, esi
call fcn.004028c5
cmp dword [ebp - 0x24], 5
jne 0x4043c1
cmp dword [ebp - 0x30], ebx
je 0x40456a
push dword [ebp - 0x30]
call dword [0x40c008]
cmp dword [esi + 0x1a8], ebx
je 0x404595
mov ecx, esi
call fcn.00402312
test eax, eax
je 0x404595
mov esi, dword [esi + 0x1a8]
mov eax, dword [esi]
push 5
push 5
push 3
mov ecx, esi
call dword [eax + 0xc]
jmp 0x40479e
mov ecx, dword [esi + 0xd0]
lea eax, [ebp - 0x2c]
push eax
call fcn.00405f20
push ebx
push 0x40ca34
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401835
lea ecx, [ebp - 0x68]
call fcn.00401471
push ecx
push ecx
lea eax, [esi + 0x98]
mov ecx, esp
push eax
call fcn.00401037
push 0x5c
push ecx
push ecx
mov ecx, esp
push 0x40c97c
call fcn.0040140d
lea ecx, [ebp - 0x2c]
call fcn.004014d9
mov ecx, eax
call fcn.00401510
push 0x20
call fcn.00404ae4
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40460d
push ebx
mov ecx, esi
call fcn.00402312
push eax
mov ecx, edi
call fcn.004089e3
jmp 0x40460f
xor eax, eax
push 0x10
mov dword [esi + 0x1a8], eax
call fcn.00404ae4
mov edi, eax
pop ecx
cmp edi, ebx
je 0x404643
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
push dword [esi + 0x1a8]
mov ecx, edi
push esi
call fcn.00406a33
mov dword [ebp - 0x24], eax
jmp 0x404646
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x24]
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx]
push 0x406a30
call dword [eax]
mov eax, dword [esi + 0x1a8]
mov ecx, dword [ebp - 0x24]
mov edi, dword [eax]
call fcn.00407000
mov ecx, dword [esi + 0x1a8]
push eax
call dword [edi + 8]
push 0x38
call fcn.00404ae4
pop ecx
cmp eax, ebx
je 0x404687
mov ecx, eax
call fcn.00404bdd
jmp 0x404689
xor eax, eax
push dword [ebp - 0x24]
mov ecx, eax
push 0x406ecd
mov dword [esi + 0x1ac], eax
call fcn.00404c4c
push 0x40c8c8
lea ecx, [ebp - 0x3c]
call fcn.0040140d
mov eax, dword [esi + 0xdc]
cmp eax, 8
jne 0x4046c1
push ecx
push ecx
mov ecx, esp
push 0x40c8b4
jmp 0x4046cf
cmp eax, 0x10
jne 0x4046dc
push ecx
push ecx
mov ecx, esp
push 0x40c8a0
call fcn.0040140d
lea ecx, [ebp - 0x3c]
call fcn.004014d9
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0x1ac]
call fcn.00405105
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x1ac]
mov dword [ebp - 0x40], eax
call fcn.00404c1d
cmp dword [ebp - 0x24], ebx
je 0x40471c
mov ecx, dword [ebp - 0x24]
push 1
call fcn.004026f5
mov edi, dword [esi + 0x1a8]
cmp edi, ebx
je 0x404734
mov ecx, edi
call fcn.00407ff7
push edi
call fcn.00404af8
pop ecx
cmp dword [ebp - 0x40], 0x64
mov dword [esi + 0x1a8], ebx
jne 0x40478e
push ecx
push ecx
mov ecx, esp
push ebx
push 0xa
push dword [esi + 0x1d0]
call fcn.00401427
push 0x40c894
lea ecx, [ebp - 0x60]
call fcn.0040140d
mov ecx, eax
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
push 1
mov ecx, esi
call fcn.004037c6
lea ecx, [ebp - 0x60]
call fcn.00401471
lea ecx, [ebp - 0x3c]
call fcn.00401471
lea ecx, [ebp - 0x2c]
call fcn.00401471
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00404b69
add ebp, 0x78
leave
ret