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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xe0
mov eax, dword [fcn.004047c8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xd0], 2
push edi
mov dword [ebp - 0x24], ebx
mov byte [esi + 0x1ad], bl
je 0x4036ab
mov ecx, dword [esi + 0xc8]
call fcn.00404fe4
test eax, 0xfffffffd
je 0x4036ab
mov ecx, esi
call fcn.00402872
mov ecx, esi
mov dword [esi + 0x1b4], eax
call fcn.0040213c
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x54]
mov eax, dword [esi + 0xd0]
xor edi, edi
inc edi
cmp eax, edi
je 0x403796
cmp eax, 2
jle 0x403723
cmp eax, 4
jle 0x403765
cmp eax, 6
je 0x4036e3
cmp eax, 7
jne 0x403723
mov dword [ebp - 0x24], 3
mov dword [esi + 0xd0], edi
jmp 0x403723
push ecx
push ecx
lea eax, [esi + 0xe4]
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [esi + 0xdc]
mov ecx, esp
push eax
call fcn.00401037
push ebx
mov ecx, esi
call fcn.0040358a
test al, al
jne 0x404412
mov byte [esi + 0x1ac], 1
mov dword [esi + 0xd0], edi
mov dword [ebp - 0x24], edi
mov eax, dword [esi + 0xd0]
dec eax
je 0x40404c
dec eax
je 0x403f11
dec eax
je 0x4038fe
dec eax
je 0x40383d
dec eax
je 0x4041de
sub eax, 4
jne 0x404412
lea ecx, [ebp - 0x2c]
call fcn.0040102d
lea ecx, [ebp - 0x2c]
jmp 0x40440d
push ecx
push ecx
lea eax, [esi + 0xe4]
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [esi + 0xdc]
mov ecx, esp
push eax
call fcn.00401037
push ebx
mov ecx, esi
call fcn.0040358a
test al, al
je 0x403723
jmp 0x404412
mov ecx, dword [esi + 0xc8]
call fcn.00404fe4
test eax, 0xffffff7f
jne 0x4037c1
mov dword [esi + 0xd4], 8
mov dword [esi + 0xd0], 5
jmp 0x403723
push ecx
push ecx
lea eax, [esi + 0xe4]
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [esi + 0xdc]
mov ecx, esp
push eax
call fcn.00401037
push ebx
mov ecx, esi
call fcn.0040358a
test al, al
jne 0x404412
cmp byte [esi + 0x1ac], bl
jne 0x403720
mov ecx, dword [esi + 0xc8]
call fcn.00404fe4
test al, 2
jg 0x403720
lea edi, [esi + 0xd4]
cmp dword [edi], 0xffffffff
mov byte [esi + 0x1ad], 1
jne 0x403828
mov dword [edi], 0xfa
mov ecx, dword [esi + 0xc8]
call fcn.00404fe4
and dword [edi], eax
mov dword [ebp - 0x24], ebx
jmp 0x403723
test byte [esi + 0xd4], 8
je 0x403877
mov ecx, esi
call fcn.0040213c
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x24], eax
movzx eax, byte [esi + 0x1af]
push eax
push ecx
push ecx
lea eax, [esi + 0x174]
mov ecx, esp
push eax
add edi, 0x20
call fcn.00401037
mov ecx, dword [ebp - 0x24]
push 8
call dword [edi]
test byte [esi + 0xd4], 0x10
je 0x4038b1
mov ecx, esi
call fcn.0040213c
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x24], eax
movzx eax, byte [esi + 0x1af]
push eax
push ecx
push ecx
lea eax, [esi + 0x174]
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.0040213c
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
push ecx
push ecx
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x184]
mov ecx, esp
push eax
add edi, 0x24
call fcn.00401037
push dword [esi + 0xd4]
mov ecx, dword [ebp - 0x24]
call dword [edi]
cmp byte [esi + 0x1ac], bl
jne 0x4038f2
cmp byte [esi + 0x1b0], bl
je 0x404412
mov byte [esi + 0x1ae], 1
jmp 0x404412
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [0x40c020]
cmp dword [esi + 0xd4], 0xffffffff
jne 0x403922
mov dword [esi + 0xd4], 0xfa
mov ecx, dword [esi + 0xc8]
call fcn.00404fe4
and dword [esi + 0xd4], eax
mov ecx, esi
call fcn.0040213c
mov ecx, dword [eax + 0xc]
push dword [esi + 0xd4]
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, al
jne 0x40396c
cmp byte [esi + 0x1af], bl
jne 0x40396c
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x3f5
push 2
push ebx
mov ecx, esi
call fcn.004026fa
cmp byte [esi + 0x1b1], bl
je 0x4039a5
mov ecx, esi
call fcn.0040213c
mov ecx, dword [eax + 0xc]
push dword [esi + 0xd4]
mov eax, dword [ecx]
call dword [eax + 0x50]
test al, al
je 0x4039a5
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x411
push 3
push ebx
mov ecx, esi
call fcn.004026fa
test byte [esi + 0xd4], 8
je 0x403c84
lea edi, [esi + 0x184]
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401037
push edi
lea ecx, [ebp - 0x34]
call fcn.00401037
lea eax, [esi + 0x174]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401037
push ecx
push ecx
lea eax, [esi + 0x98]
mov ecx, esp
push eax
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.00401510
push ecx
push ecx
lea eax, [esi + 0xa0]
mov ecx, esp
push eax
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x34]
call fcn.00401510
push ecx
push ecx
lea eax, [esi + 0xb8]
mov ecx, esp
push eax
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x48]
call fcn.00401510
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401037
push ebx
push 0x40c83c
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401835
lea ecx, [ebp - 0x50]
call fcn.00401471
push ecx
push ecx
mov ecx, esp
push 0x40c830
call fcn.0040140d
lea ecx, [ebp - 0x3c]
call fcn.004014d9
mov ecx, dword [esi + 0xc8]
lea eax, [ebp - 0x48]
push eax
push 0x200
call fcn.0040638b
cmp al, 1
jne 0x403a98
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x410
push 2
push ebx
mov ecx, esi
call fcn.004026fa
jmp 0x403c64
mov ecx, esi
call fcn.0040213c
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x24], eax
movzx eax, byte [esi + 0x1af]
push eax
push ecx
push ecx
lea eax, [esi + 0x174]
mov ecx, esp
push eax
add edi, 0x18
call fcn.00401037
mov ecx, dword [ebp - 0x24]
push 8
call dword [edi]
mov ecx, esi
call fcn.0040213c
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
push ecx
push ecx
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x184]
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 - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
push 0xd
push ebx
push ebx
mov ecx, esi
call fcn.004026fa
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push 8
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xc8]
call fcn.00406286
test al, al
je 0x403c64
push ecx
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00401037
push 0xf
push ebx
push ebx
mov ecx, esi
call fcn.004026fa
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push 4
push ecx
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xc8]
call fcn.00406286
test al, al
je 0x403c64
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00401037
push 0x10
push ebx
push ebx
mov ecx, esi
call fcn.004026fa
push ecx
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00401037
push 1
push 2
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xc8]
call fcn.00406286
test al, al
je 0x403c64
cmp dword [ebp - 0x1c], 5
jne 0x403bd0
cmp dword [ebp - 0x18], ebx
je 0x403c14
push ecx
push ecx
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00401037
push 0x13
push ebx
push ebx
mov ecx, esi
call fcn.004026fa
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push 0x200
push ecx
push ecx
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xc8]
call fcn.00406286
test al, al
je 0x403c64
mov ecx, esi
call fcn.0040213c
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x24], eax
add edi, 0x1c
cmp byte [esi + 0x1b0], bl
sete al
movzx eax, al
push eax
push ecx
push ecx
lea eax, [esi + 0x174]
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00401037
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [ebp - 0x24]
push 8
call dword [edi]
lea ecx, [ebp - 0x3c]
call fcn.00401471
lea ecx, [ebp - 0x48]
call fcn.00401471
lea ecx, [ebp - 0x34]
call fcn.00401471
lea ecx, [ebp - 0x2c]
call fcn.00401471
test byte [esi + 0xd4], 0x10
je 0x404412
lea edi, [esi + 0x184]
push edi
lea ecx, [ebp - 0x3c]
call fcn.00401037
push edi
lea ecx, [ebp - 0x48]
call fcn.00401037
lea eax, [esi + 0x174]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.00401037
push ecx
push ecx
lea eax, [esi + 0xa8]
mov ecx, esp
push eax
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x3c]
call fcn.00401510
push ecx
push ecx
lea eax, [esi + 0xb0]
mov ecx, esp
push eax
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x48]
call fcn.00401510
push ecx
push ecx
lea eax, [esi + 0xb8]
mov ecx, esp
push eax
call fcn.00401037
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.00401510
mov ecx, dword [esi + 0xc8]
lea eax, [ebp - 0x2c]
push eax
push 0x200
call fcn.0040638b
cmp al, 1
jne 0x403d3e
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x410
push 2
push ebx
mov ecx, esi
call fcn.004026fa
jmp 0x403f01
mov ecx, esi
call fcn.0040213c
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x30], eax
movzx eax, byte [esi + 0x1af]
push eax
push ecx
push ecx
mov ecx, esp
push dword [ebp - 0x24]
add edi, 0x18
call fcn.00401037
mov ecx, dword [ebp - 0x30]
push 0x10
call dword [edi]
mov ecx, esi
call fcn.0040213c
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
push ecx
push ecx
mov dword [ebp - 0x30], eax
lea eax, [esi + 0x184]
mov ecx, esp
push eax
add edi, 0x24
call fcn.00401037
mov ecx, dword [ebp - 0x30]
push 0x10
call dword [edi]
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00401037
push 0xe
push ebx
push ebx
mov ecx, esi
call fcn.004026fa
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push 0x10
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xc8]
call fcn.00406286
test al, al
je 0x403f01
push ecx
push ecx
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00401037
push 0xf
push ebx
push ebx
mov ecx, esi
call fcn.004026fa
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push 4
push ecx
push ecx
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xc8]
call fcn.00406286
test al, al
je 0x403f01
push ecx
push ecx
mov ecx, esp
lea edi, [esi + 0x184]
push edi
call fcn.00401037
push 0x11
push ebx
push ebx
mov ecx, esi
call fcn.004026fa
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 + 0xc8]
call fcn.00406286
test al, al
je 0x403f01
cmp dword [ebp - 0x1c], 5
jne 0x403e71
cmp dword [ebp - 0x18], ebx
je 0x403eb5
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.004026fa
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 1
push 0x200
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xc8]
call fcn.00406286
test al, al
je 0x403f01
mov ecx, esi
call fcn.0040213c
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
add edi, 0x1c
cmp byte [esi + 0x1b0], bl
mov dword [ebp - 0x30], 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 - 0x48]
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 - 0x30]
push 0x10
call dword [edi]
lea ecx, [ebp - 0x2c]
call fcn.00401471
lea ecx, [ebp - 0x48]
jmp 0x404405
push 0x40c7e0
push ebx
push ebx
call dword [0x40c004]
mov dword [ebp - 0x28], eax
call dword [section..rdata]
push ecx
push ecx
cmp eax, 0xb7
mov ecx, esp
sete byte [ebp - 0x3d]
call fcn.0040102d
cmp byte [ebp - 0x3d], bl
push 0x3f3
sete al
movzx eax, al
push 3
push eax
mov ecx, esi
call fcn.004026fa
lea eax, [esi + 0xdc]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401037
push ebx
push 0x40c83c
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401835
lea ecx, [ebp - 0x68]
call fcn.00401471
push ecx
push ecx
mov ecx, esp
push 0x40c830
call fcn.0040140d
lea ecx, [ebp - 0x34]
call fcn.004014d9
push ecx
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xc8]
call fcn.00405c28
test al, al
jne 0x403fd0
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push ebx
push 2
push ecx
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xc8]
call fcn.00406286
push 0x10
call fcn.00404743
mov edi, eax
pop ecx
cmp edi, ebx
je 0x403ff7
push ecx
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00401037
push esi
mov ecx, edi
call fcn.00406c70
mov edi, eax
jmp 0x403ff9
xor edi, edi
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
jne 0x40401a
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x3ef
push 3
push ebx
mov ecx, esi
call fcn.004026fa
jmp 0x40401f
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, edi
call fcn.00406bcf
push edi
call fcn.00404757
pop ecx
lea ecx, [ebp - 0x34]
call fcn.00401471
cmp dword [ebp - 0x28], ebx
je 0x404412
push dword [ebp - 0x28]
call dword [0x40c008]
jmp 0x404412
mov ecx, esi
call fcn.0040213c
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 8]
push esi
mov dword [esi + 0x1a0], eax
mov edx, dword [eax]
push 0x4063e1
mov ecx, eax
call dword [edx]
push 0x40c790
push ebx
push ebx
call dword [0x40c004]
mov dword [ebp - 0x28], eax
call dword [section..rdata]
lea edi, [esi + 0x1b8]
cmp dword [edi], ebx
je 0x4040a1
push ecx
push ecx
lea eax, [esi + 0x1bc]
mov ecx, esp
push eax
call fcn.00401037
push dword [edi]
jmp 0x40411f
cmp eax, 0xb7
jne 0x4040b8
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x3f3
jmp 0x40411f
mov eax, dword [esi + 0x1b4]
cmp eax, ebx
je 0x4040e8
dec eax
je 0x4040d8
dec eax
jne 0x40413d
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x3fe
jmp 0x40411f
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x3f4
jmp 0x40411f
cmp byte [esi + 0x1ad], bl
je 0x40412b
cmp byte [esi + 0x1af], bl
jne 0x40412b
mov ecx, esi
call fcn.0040213c
mov ecx, dword [eax + 0xc]
push dword [esi + 0xd4]
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, al
jne 0x40412b
push ecx
push ecx
mov ecx, esp
call fcn.0040102d
push 0x3f5
push 2
push ebx
mov ecx, esi
call fcn.004026fa
jmp 0x40413d
push dword [ebp - 0x24]
mov ecx, dword [esi + 0x1a0]
mov eax, dword [ecx]
push 6
push 3
call dword [eax + 0xc]
cmp byte [esi + 0x1ad], bl
je 0x404154
mov ecx, esi
call fcn.0040213c
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x70]
mov ecx, dword [esi + 0x1a0]
mov dword [esi + 0xd0], ebx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [ebp - 0x24], eax
cmp dword [esi + 0x1a0], ebx
je 0x40418b
mov ecx, esi
call fcn.0040213c
mov ecx, dword [eax + 0xc]
push dword [esi + 0x1a0]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esi + 0x1a0], ebx
mov edi, 0x40f
cmp dword [ebp - 0x24], edi
jne 0x4041c6
mov ecx, esi
call fcn.0040213c
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x7c]
test al, al
jne 0x404035
push ecx
push ecx
mov ecx, esp
mov byte [esi + 0x1c4], bl
call fcn.0040102d
push edi
push 2
push ebx
mov ecx, esi
call fcn.004026fa
cmp dword [ebp - 0x24], 5
jne 0x404035
cmp dword [ebp - 0x28], ebx
je 0x4041de
push dword [ebp - 0x28]
call dword [0x40c008]
cmp dword [esi + 0x1a0], ebx
je 0x404209
mov ecx, esi
call fcn.0040213c
test eax, eax
je 0x404209
mov esi, dword [esi + 0x1a0]
mov eax, dword [esi]
push 5
push 5
push 3
mov ecx, esi
call dword [eax + 0xc]
jmp 0x404412
mov ecx, dword [esi + 0xc8]
lea eax, [ebp - 0x3c]
push eax
call fcn.004059a2
push ebx
push 0x40c83c
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401835
lea ecx, [ebp - 0x60]
call fcn.00401471
push ecx
push ecx
lea eax, [esi + 0x90]
mov ecx, esp
push eax
call fcn.00401037
push 0x5c
push ecx
push ecx
mov ecx, esp
push 0x40c784
call fcn.0040140d
lea ecx, [ebp - 0x3c]
call fcn.004014d9
mov ecx, eax
call fcn.00401510
push 0x20
call fcn.00404743
mov edi, eax
pop ecx
cmp edi, ebx
je 0x404281
push ebx
mov ecx, esi
call fcn.0040213c
push eax
mov ecx, edi
call fcn.004082b1
jmp 0x404283
xor eax, eax
push 0x10
mov dword [esi + 0x1a0], eax
call fcn.00404743
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4042b7
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00401037
push dword [esi + 0x1a0]
mov ecx, edi
push esi
call fcn.00406434
mov dword [ebp - 0x24], eax
jmp 0x4042ba
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x24]
mov ecx, dword [esi + 0x1a0]
mov eax, dword [ecx]
push 0x406431
call dword [eax]
mov eax, dword [esi + 0x1a0]
mov ecx, dword [ebp - 0x24]
mov edi, dword [eax]
call fcn.00406a01
mov ecx, dword [esi + 0x1a0]
push eax
call dword [edi + 8]
push 0x38
call fcn.00404743
pop ecx
cmp eax, ebx
je 0x4042fb
mov ecx, eax
call fcn.0040483c
jmp 0x4042fd
xor eax, eax
push dword [ebp - 0x24]
mov ecx, eax
push 0x4068ce
mov dword [esi + 0x1a4], eax
call fcn.004048ab
push 0x40c6d0
lea ecx, [ebp - 0x2c]
call fcn.0040140d
mov eax, dword [esi + 0xd4]
cmp eax, 8
jne 0x404335
push ecx
push ecx
mov ecx, esp
push 0x40c6bc
jmp 0x404343
cmp eax, 0x10
jne 0x404350
push ecx
push ecx
mov ecx, esp
push 0x40c6a8
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 + 0x1a4]
call fcn.00404d41
mov ecx, dword [esi + 0x1a0]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x1a4]
mov dword [ebp - 0x30], eax
call fcn.0040487c
cmp dword [ebp - 0x24], ebx
je 0x404390
mov ecx, dword [ebp - 0x24]
push 1
call fcn.0040253a
mov edi, dword [esi + 0x1a0]
cmp edi, ebx
je 0x4043a8
mov ecx, edi
call fcn.004078c5
push edi
call fcn.00404757
pop ecx
cmp dword [ebp - 0x30], 0x64
mov dword [esi + 0x1a0], ebx
jne 0x404402
push ecx
push ecx
mov ecx, esp
push ebx
push 0xa
push dword [esi + 0x1c8]
call fcn.00401427
push 0x40c69c
lea ecx, [ebp - 0x58]
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 - 0x3c]
mov ecx, esp
push eax
call fcn.00401037
push 1
mov ecx, esi
call fcn.0040358a
lea ecx, [ebp - 0x58]
call fcn.00401471
lea ecx, [ebp - 0x2c]
call fcn.00401471
lea ecx, [ebp - 0x3c]
call fcn.00401471
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004047c8
add ebp, 0x78
leave
ret