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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd54
mov eax, dword [ebp + 0x44]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
push esi
mov dword [esp + 0x34], ebx
mov dword [eax], 0
call fcn.004b5a00
mov edi, dword [ebp + 0xc]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4a206c
lea esp, [esp]
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [ebx + 0x138]
call dword [eax + 0xc]
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 0xc]
cmp esi, eax
jne 0x4a1e90
mov ecx, dword [ebx + 0x138]
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
je 0x4a1e90
mov eax, 1
jmp 0x4a1e92
xor eax, eax
test al, al
jne 0x4a2548
cmp dword [esp + 0x1c], 3
je 0x4a2479
lea ecx, [esp + 0x540]
call fcn.004cecd0
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x134]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004ce8b0
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x540]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004963e0
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004b5380
add esp, 0xc
lea ecx, [esp + 0x130]
call fcn.004cece0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x544]
call fcn.004ce8b0
lea eax, [esp + 0x34]
mov ecx, ebx
push eax
call fcn.004a0610
test eax, eax
jne 0x4a2452
mov esi, dword [ebx + 0x128]
lea ecx, [esp + 0x540]
push eax
push dword [ebp + 0x28]
mov dword [esp + 0x14], eax
push dword [ebp + 0x1c]
mov edi, dword [esi]
push eax
push 0x40
call fcn.004ceb60
push eax
push 0
lea ecx, [esp + 0xa0]
call fcn.004ce8d0
mov ecx, eax
call fcn.004ceb60
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call dword [edi + 0x80]
mov ecx, dword [esp + 0xc]
mov esi, eax
test ecx, ecx
je 0x4a1f8e
cmp ecx, 0xffffffff
je 0x4a1f8e
push ecx
call fcn.00507820
mov ecx, dword [esp + 0xc]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0xc], ecx
test esi, esi
je 0x4a235b
cmp esi, 0xc0000034
je 0x4a1fed
cmp esi, 0xc000003a
je 0x4a1fed
test ecx, ecx
je 0x4a1fc4
cmp ecx, 0xffffffff
je 0x4a1fc4
push ecx
call fcn.00507820
mov ecx, dword [esp + 0xc]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x540]
call fcn.004cece0
mov esi, dword [ebp + 0x14]
push esi
call fcn.004b5a00
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4a1e60
mov edi, dword [ebp + 0xc]
jmp 0x4a206c
mov ecx, dword [ebx + 0x128]
lea edx, [esp + 0x10]
mov edi, dword [ebp + 0xc]
push 0
push dword [ebp + 0x28]
mov dword [esp + 0x18], 0
push dword [ebp + 0x1c]
mov eax, dword [ecx]
push dword [ebp + 0x10]
push edi
push edx
call dword [eax + 0x80]
mov ecx, dword [esp + 0x10]
mov esi, eax
test ecx, ecx
je 0x4a202c
cmp ecx, 0xffffffff
je 0x4a202c
push ecx
call fcn.00507820
cmp dword [esp + 0x1c], 1
jne 0x4a20c6
test esi, esi
jne 0x4a20a9
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a205d
cmp eax, 0xffffffff
je 0x4a205d
push eax
call fcn.00507820
mov ecx, dword [esp + 0xc]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x540]
call fcn.004cece0
mov esi, dword [ebp + 0x14]
cmp dword [ebx + 0x130], 1
jne 0x4a3ea6
push edi
mov edi, dword [ebp + 0x30]
push edi
call fcn.004b5320
add esp, 8
test eax, eax
jne 0x4a2c2c
mov eax, dword [ebp + 0x40]
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
cmp esi, 0xc0000034
je 0x4a2319
cmp esi, 0xc000003a
je 0x4a2319
jmp 0x4a240d
test esi, esi
jne 0x4a2305
push edi
call fcn.004b61a0
add esp, 4
test eax, eax
je 0x4a22f7
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x74c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004ce8b0
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x48]
push eax
call fcn.004963e0
push eax
lea eax, [esp + 0x40]
mov ecx, ebx
push eax
call fcn.0049e1c0
lea ecx, [esp + 0x748]
call fcn.004cece0
push dword [ebp + 0x38]
mov eax, dword [ebp + 0x30]
lea ecx, [esp + 0x544]
push dword [ebp + 0x34]
or eax, 0x20
mov dword [esp + 0x18], esi
mov esi, dword [ebx + 0x128]
push eax
push 5
push dword [ebp + 0x28]
mov edi, dword [esi]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
push 0x40
call fcn.004ceb60
push eax
push 0
lea ecx, [esp + 0xb4]
call fcn.004ce8d0
mov ecx, eax
call fcn.004ceb60
push eax
push 0x100082
push dword [ebp + 8]
mov ecx, esi
call dword [edi + 0x84]
test eax, eax
je 0x4a219f
mov ecx, dword [ebp + 0x40]
mov dword [ecx], 0
mov ecx, dword [ebp + 0x3c]
mov dword [ecx], eax
lea ecx, [esp + 0x10]
call fcn.0044dba0
jmp 0x4a241b
mov eax, dword [ebp + 0x2c]
cmp eax, 1
je 0x4a21ac
cmp eax, 3
jne 0x4a2211
mov esi, dword [ebx + 0x128]
lea eax, [esp + 0xc8]
push eax
push 0
push 0x40
mov edi, dword [esi]
lea ecx, [esp + 0x54]
push 0x100e03cc
call fcn.004ce920
mov ecx, eax
call fcn.004ceb60
push eax
push 0
lea ecx, [esp + 0x98]
call fcn.004ce8d0
mov ecx, eax
call fcn.004ceb60
push eax
mov ecx, esi
call dword [edi + pe_nt_image_headers32]
test eax, eax
jne 0x4a2211
test dword [esp + 0xe8], 0x10
jne 0x4a2211
push eax
push dword [ebp + 0x10]
call fcn.004b54a0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0044dba0
push dword [ebp + 0x30]
mov esi, dword [ebx + 0x128]
lea ecx, [esp + 0x544]
push dword [ebp + 0x28]
push dword [ebp + 0x1c]
mov edi, dword [esi]
push 0
push 0x40
call fcn.004ceb60
push eax
push 0
lea ecx, [esp + 0xa0]
call fcn.004ce8d0
mov ecx, eax
call fcn.004ceb60
push eax
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [edi + 0x80]
test eax, eax
je 0x4a2280
mov ecx, dword [ebp + 0x40]
mov dword [ecx], 0
mov ecx, dword [ebp + 0x3c]
mov dword [ecx], eax
lea ecx, [esp + 0x10]
call fcn.0044dba0
jmp 0x4a241b
lea ecx, [esp + 0x130]
call fcn.004cecd0
lea eax, [esp + 0x130]
mov ecx, ebx
push eax
push dword [ebp + 0x10]
call fcn.004a0130
test eax, eax
je 0x4a22cb
lea eax, [esp + 0x130]
push eax
push dword [ebp + 8]
lea eax, [esp + 0x3c]
push eax
lea ecx, [ebx + 0xfc]
call fcn.00446ff0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4a22cb
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp + 0x40]
lea ecx, [esp + 0x130]
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], 0
call fcn.004cece0
lea ecx, [esp + 0x10]
call fcn.0044dba0
jmp 0x4a241b
lea ecx, [esp + 0xc]
call fcn.0044dba0
jmp 0x4a205d
cmp esi, 0xc0000034
je 0x4a2319
cmp esi, 0xc000003a
jne 0x4a240d
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x134]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004ce8b0
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x48]
push eax
call fcn.004963e0
push eax
lea eax, [esp + 0x40]
mov ecx, ebx
push eax
call fcn.0049e1c0
lea ecx, [esp + 0x130]
call fcn.004cece0
push dword [ebp + 0x38]
mov esi, dword [ebx + 0x128]
lea ecx, [esp + 0x544]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
mov edi, dword [esi]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
push 0x40
call fcn.004ceb60
push eax
push 0
lea ecx, [esp + 0xb4]
call fcn.004ce8d0
mov ecx, eax
call fcn.004ceb60
push eax
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [edi + 0x84]
mov esi, eax
test esi, esi
jne 0x4a240d
lea ecx, [esp + 0x130]
call fcn.004cecd0
lea eax, [esp + 0x130]
mov ecx, ebx
push eax
push dword [ebp + 0x10]
call fcn.004a0130
test eax, eax
je 0x4a2401
lea eax, [esp + 0x130]
push eax
push dword [ebp + 8]
lea eax, [esp + 0x3c]
push eax
lea ecx, [ebx + 0xfc]
call fcn.00446ff0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4a2401
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
lea ecx, [esp + 0x130]
call fcn.004cece0
mov eax, dword [ebp + 0x40]
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a2464
cmp eax, 0xffffffff
je 0x4a2464
push eax
call fcn.00507820
mov ecx, dword [esp + 0xc]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x540]
call fcn.004cece0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov eax, dword [ebp + 0x40]
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], 0xc0000034
lea ecx, [esp + 0x540]
call fcn.004cece0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
lea ecx, [esp + 0x130]
call fcn.004cecd0
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x74c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004ce8b0
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x130]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004963e0
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004b5380
add esp, 0xc
lea ecx, [esp + 0x748]
call fcn.004cece0
push dword [ebp + 0x38]
mov esi, dword [ebx + 0x128]
lea ecx, [esp + 0x134]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
mov edi, dword [esi]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
push 0x40
call fcn.004ceb60
push eax
push 0
lea ecx, [esp + 0xb4]
call fcn.004ce8d0
mov ecx, eax
call fcn.004ceb60
push eax
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [edi + 0x84]
mov ecx, dword [ebp + 0x40]
mov dword [ecx], 0
mov ecx, dword [ebp + 0x3c]
mov dword [ecx], eax
lea ecx, [esp + 0x130]
call fcn.004cece0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0x130]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [esp + 0x748]
call fcn.004cecd0
mov edi, dword [ebp + 0x18]
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call fcn.004963b0
push eax
lea ecx, [esp + 0x954]
call fcn.004ceb70
lea ecx, [esp + 0x338]
call fcn.004cecd0
lea ecx, [esp + 0x130]
call fcn.004ceb60
push eax
lea ecx, [esp + 0x954]
call fcn.004cefd0
test eax, eax
jne 0x4a260a
lea eax, [esp + 0x748]
mov ecx, edi
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004963b0
push eax
mov ecx, ebx
call fcn.004a0ad0
lea ecx, [esp + 0x748]
call fcn.004ceb60
push eax
lea ecx, [esp + 0x134]
call fcn.004ceb60
push eax
lea eax, [esp + 0xb60]
push eax
call fcn.004b5350
add esp, 0xc
lea ecx, [esp + 0x338]
push eax
call fcn.004ced00
lea ecx, [esp + 0xb58]
call fcn.004cece0
jmp 0x4a261e
lea eax, [esp + 0x950]
push eax
lea ecx, [esp + 0x33c]
call fcn.004ced00
mov esi, dword [ebx + 0xc]
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call fcn.004963b0
push eax
push esi
call fcn.004b6140
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a265c
lea eax, [esp + 0x48]
mov ecx, edi
push eax
call fcn.004963b0
push eax
call fcn.004b6050
add esp, 4
test eax, eax
jne 0x4a265c
xor edi, edi
jmp 0x4a2661
mov edi, 1
mov esi, dword [ebx + 0xc]
lea ecx, [esp + 0x338]
call fcn.004ceb60
push eax
push esi
call fcn.004b6140
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x1c]
cmp eax, 3
jne 0x4a27a1
test esi, esi
jne 0x4a26b2
test edi, edi
je 0x4a26b2
lea ecx, [esp + 0x748]
call fcn.004ceb60
push eax
lea ecx, [esp + 0x134]
call fcn.004ceb60
push eax
mov ecx, ebx
call fcn.0049e1c0
push dword [ebp + 0x38]
mov esi, dword [ebx + 0x128]
lea ecx, [esp + 0x33c]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
mov edi, dword [esi]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
push 0x40
call fcn.004ceb60
push eax
push 0
lea ecx, [esp + 0xb4]
call fcn.004ce8d0
mov ecx, eax
call fcn.004ceb60
push eax
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [edi + 0x84]
mov ecx, dword [0x10109618]
mov esi, eax
mov edx, dword [ecx]
call dword [edx + 0xf8]
test eax, eax
je 0x4a2baf
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x33c]
call fcn.004ce8b0
push 0x100eb46c
push esi
push 0x100f1e94
lea eax, [esp + 0x48]
push eax
push 0x100f1e88
push 0x100f1e40
push 0x100f1e30
push 0x100dfd9c
push 2
lea ecx, [esp + 0x9c]
call fcn.00458d10
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045ae90
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045af30
mov ecx, eax
call fcn.0045afa0
lea ecx, [esp + 0x78]
call fcn.0045ad30
jmp 0x4a2baf
cmp eax, 1
jne 0x4a291c
cmp dword [esp + 0x10], 0
je 0x4a27c3
test esi, esi
jne 0x4a27c3
mov byte [esp + 0x23], 0
lea ecx, [esp + 0x950]
jmp 0x4a27f8
mov byte [esp + 0x23], 1
test esi, esi
jne 0x4a27f1
test edi, edi
je 0x4a27f1
lea ecx, [esp + 0x748]
call fcn.004ceb60
push eax
lea ecx, [esp + 0x134]
call fcn.004ceb60
push eax
mov ecx, ebx
call fcn.0049e1c0
lea ecx, [esp + 0x338]
call fcn.004ceb60
push dword [ebp + 0x38]
mov esi, dword [ebx + 0x128]
mov ecx, eax
push dword [ebp + 0x34]
mov eax, dword [ebp + 0x2c]
push dword [ebp + 0x30]
mov edi, dword [esi]
push eax
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
push 0x40
push ecx
push 0
lea ecx, [esp + 0xb4]
call fcn.004ce8d0
mov ecx, eax
call fcn.004ceb60
push eax
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [edi + 0x84]
mov ecx, dword [0x10109618]
mov esi, eax
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x4a2baf
cmp byte [esp + 0x23], 0
lea ecx, [esp + 0x338]
jne 0x4a2876
lea ecx, [esp + 0x950]
call fcn.004ceb60
push 0x100eb46c
push esi
lea ecx, [esp + 0x8c]
mov edi, eax
call fcn.0045a450
push eax
movzx eax, byte [esp + 0x2b]
lea ecx, [esp + 0x80]
push 0x100f1eb0
push edi
push 0x100f1e88
push eax
push 0x100f1ea0
push 0x100f1e40
push 0x100f1e30
push 0x100dfd9c
push 2
call fcn.00458d10
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045af30
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045ae90
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045ae10
mov ecx, eax
call fcn.0045afa0
lea ecx, [esp + 0x78]
call fcn.0045ad30
lea ecx, [esp + 0x84]
call fcn.004467e0
jmp 0x4a2baf
cmp eax, 2
jne 0x4a2bab
push dword [ebp + 0xc]
call fcn.004b61a0
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4a2a12
test esi, esi
jne 0x4a2a12
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x4a2acf
test esi, esi
jne 0x4a2ac1
test edi, edi
je 0x4a2983
lea ecx, [esp + 0x748]
call fcn.004ceb60
push eax
lea ecx, [esp + 0x134]
call fcn.004ceb60
push eax
mov ecx, ebx
call fcn.0049e1c0
cmp dword [esp + 0x10], 0
je 0x4a2ac1
push dword [ebp + 0x38]
mov eax, dword [ebp + 0x30]
lea ecx, [esp + 0x33c]
push dword [ebp + 0x34]
mov esi, dword [ebx + 0x128]
or eax, 0x20
push eax
push 2
push dword [ebp + 0x28]
mov dword [esp + 0x30], 0
push dword [ebp + 0x24]
mov edi, dword [esi]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
push 0x40
call fcn.004ceb60
push eax
push 0
lea ecx, [esp + 0xb4]
call fcn.004ce8d0
mov ecx, eax
call fcn.004ceb60
push eax
push 0x100082
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call dword [edi + 0x84]
test eax, eax
je 0x4a2a3e
mov ecx, dword [ebp + 0x40]
mov dword [ecx], 0
mov ecx, dword [ebp + 0x3c]
mov dword [ecx], eax
lea ecx, [esp + 0x1c]
call fcn.0044dba0
jmp 0x4a2bf3
mov eax, 1
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x4a2946
test esi, esi
jne 0x4a2946
cmp dword [esp + 0x10], esi
je 0x4a2946
mov dword [esp + 0x10], eax
jmp 0x4a295e
mov eax, dword [ebp + 0x2c]
cmp eax, 1
je 0x4a2a4b
cmp eax, 3
jne 0x4a2ab8
mov esi, dword [ebx + 0x128]
lea eax, [esp + 0xc8]
push eax
push 0
push 0x40
mov edi, dword [esi]
lea ecx, [esp + 0x54]
push 0x100e03cc
call fcn.004ce920
mov ecx, eax
call fcn.004ceb60
push eax
push dword [esp + 0x2c]
lea ecx, [esp + 0x98]
call fcn.004ce8d0
mov ecx, eax
call fcn.004ceb60
push eax
mov ecx, esi
call dword [edi + pe_nt_image_headers32]
test eax, eax
jne 0x4a2ab8
mov eax, dword [esp + 0xe8]
shr eax, 4
not al
test al, 1
je 0x4a2ab8
push dword [esp + 0x1c]
push dword [ebp + 0x10]
call fcn.004b54a0
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.0044dba0
cmp dword [esp + 0x2c], 0
lea ecx, [esp + 0x338]
jne 0x4a2ad6
lea ecx, [esp + 0x950]
call fcn.004ceb60
push dword [ebp + 0x38]
mov esi, dword [ebx + 0x128]
mov ecx, eax
push dword [ebp + 0x34]
mov eax, dword [ebp + 0x2c]
push dword [ebp + 0x30]
mov edi, dword [esi]
push eax
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
push 0x40
push ecx
push 0
lea ecx, [esp + 0xb4]
call fcn.004ce8d0
mov ecx, eax
call fcn.004ceb60
push eax
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [edi + 0x84]
mov ecx, dword [0x10109618]
mov esi, eax
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x4a2baf
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x338]
test edi, edi
jne 0x4a2b51
lea ecx, [esp + 0x950]
call fcn.004ceb60
push 0x100eb46c
push esi
push 0x100f1e94
push eax
push 0x100f1e88
push edi
push 0x100f1ea0
push 0x100f1e40
push 0x100f1e30
push 0x100dfd9c
push 2
lea ecx, [esp + 0xa4]
call fcn.00458d10
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045af30
jmp 0x4a2770
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x338]
call fcn.004ceb60
push eax
mov ecx, ebx
call fcn.004a0610
test esi, esi
jne 0x4a2be5
test eax, eax
je 0x4a2be5
test byte [ebp + 0x2c], 6
je 0x4a2be5
lea ecx, [esp + 0x338]
call fcn.004ceb60
push eax
mov ecx, ebx
call fcn.004affb0
mov eax, dword [ebp + 0x40]
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], esi
lea ecx, [esp + 0x338]
call fcn.004cece0
lea ecx, [esp + 0x950]
call fcn.004cece0
lea ecx, [esp + 0x748]
call fcn.004cece0
lea ecx, [esp + 0x130]
call fcn.004cece0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x4a2c5a
cmp eax, 2
je 0x4a2c50
cmp eax, 1
je 0x4a2c50
cmp eax, 3
je 0x4a2c50
cmp eax, 4
je 0x4a2c5a
cmp eax, 5
jne 0x4a208e
cmp eax, 4
je 0x4a2c5a
cmp eax, 5
jne 0x4a2c66
test edi, 1
jne 0x4a208e
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0xf8]
push eax
call fcn.004963e0
mov edi, esi
test esi, esi
je 0x4a2c82
mov eax, dword [esi]
push esi
call dword [eax + 4]
xor ecx, ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x74], ecx
xor esi, esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x338]
mov dword [esp + 0x40], 0
mov dword [esp + 0xc], esi
mov dword [esp + 0x50], 0xffffffff
call fcn.004cecd0
lea ecx, [esp + 0x540]
call fcn.004cecd0
lea ecx, [esp + 0x54]
call fcn.004961b0
mov ecx, dword [esp + 0x40]
mov esi, 1
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x54]
push eax
call fcn.004962a0
test eax, eax
je 0x4a3257
cmp dword [esp + 0x54], 0
je 0x4a2d54
lea eax, [esp + 0x58]
push eax
call fcn.004b62e0
add esp, 4
test eax, eax
je 0x4a2d47
push dword [esp + 0x5c]
lea ecx, [esp + 0x544]
mov dword [esp + 0x18], 1
push dword [esp + 0x5c]
mov dword [esp + 0x58], 0x10
call fcn.004ced60
push eax
lea ecx, [esp + 0x33c]
call fcn.004ced00
jmp 0x4a2e4d
mov dword [esp + 0x14], 0
jmp 0x4a2e4d
lea eax, [esp + 0x58]
push eax
call fcn.004b61e0
add esp, 4
test eax, eax
je 0x4a33e9
mov eax, dword [esp + 0x60]
cmp eax, 1
jne 0x4a2e0a
mov esi, dword [ebx + 0x128]
lea eax, [esp + 0xc8]
mov ecx, dword [ebp + 0x18]
push eax
push 0
mov ebx, dword [esi]
lea eax, [esp + 0x60]
push 0x40
push eax
lea eax, [esp + 0x110]
push eax
call fcn.00496270
push eax
push 0
lea ecx, [esp + 0x12c]
call fcn.004ce8d0
mov ecx, eax
call fcn.004ceb60
push eax
mov ecx, esi
call dword [ebx + pe_nt_image_headers32]
test eax, eax
jne 0x4a2dfc
push dword [esp + 0x5c]
mov eax, dword [esp + 0xec]
lea ecx, [esp + 0x544]
push dword [esp + 0x5c]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x58], eax
call fcn.004ced60
push eax
lea ecx, [esp + 0x33c]
call fcn.004ced00
mov ebx, dword [esp + 0x30]
jmp 0x4a2e4d
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x14], 0
jmp 0x4a2e4d
test eax, eax
jne 0x4a33ce
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x544]
push eax
lea eax, [esp + 0x340]
push eax
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x6c]
lea eax, [esp + 0x124]
push eax
call fcn.00496200
push eax
call fcn.004b5ab0
add esp, 0x14
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x14], esi
je 0x4a2f72
mov ecx, dword [esp + 0x60]
sub ecx, esi
je 0x4a2ee4
dec ecx
jne 0x4a3327
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x544]
call fcn.004ce8b0
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x33c]
call fcn.004ce8b0
mov ecx, dword [ebx + 0x138]
lea edx, [esp + 0xb8]
push 3
push edx
lea edx, [esp + 0xb8]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x1c]
push edx
call dword [eax + 0xac]
mov esi, dword [eax]
test esi, esi
je 0x4a2ec5
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a3224
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], 0
jmp 0x4a3224
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x544]
call fcn.004ce8b0
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x33c]
call fcn.004ce8b0
test dword [esp + 0x50], 0x10
mov eax, esi
mov ecx, dword [ebx + 0x138]
setne al
inc eax
push eax
mov edx, dword [ecx]
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0xa8]
push eax
call dword [edx + 0xac]
mov esi, dword [eax]
test esi, esi
je 0x4a2f4d
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x4a3224
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x9c], 0
jmp 0x4a3224
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
cmp eax, 1
jne 0x4a2f88
cmp dword [esp + 0x60], esi
je 0x4a333e
lea ecx, [esp + 0x84]
call fcn.004961b0
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x84]
push eax
call fcn.004962a0
test eax, eax
je 0x4a2fe8
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4a333e
cmp eax, 1
mov eax, dword [ebp + 0x2c]
jne 0x4a2feb
cmp eax, 1
je 0x4a33b7
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x74], 1
mov dword [esp + 0x34], ecx
jmp 0x4a2feb
mov eax, dword [ebp + 0x2c]
cmp eax, 1
je 0x4a338b
cmp eax, 4
je 0x4a338b
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x4a309f
mov esi, dword [ebp + 0x30]
lea eax, [esp + 0x28]
push eax
and esi, 1
push esi
push dword [ebp + 0x24]
call fcn.004b5d30
add esp, 8
push eax
push esi
call fcn.00493540
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x4a3355
push dword [esp + 0x28]
mov ecx, dword [ebx + 0x138]
test esi, esi
setne al
inc eax
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x60]
push eax
push eax
lea eax, [esp + 0x74]
push eax
call dword [edx + 0xa8]
mov esi, dword [eax]
test esi, esi
je 0x4a3064
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4a307a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x64], 0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a3088
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0xc], esi
test esi, esi
je 0x4a3224
mov eax, dword [esi]
push esi
call dword [eax + 4]
jmp 0x4a3224
cmp eax, 1
jne 0x4a3224
lea eax, [esp + 0x44]
push eax
call fcn.00497250
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4a3372
push dword [esp + 0x5c]
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0xf4]
push eax
call fcn.00496200
lea ecx, [esp + 0x48]
push dword [eax + 4]
push dword [eax]
call fcn.004ce960
mov ebx, dword [ebx + 0x128]
lea ecx, [esp + 0x108]
push 0
mov dword [esp + 0x28], esi
push 3
mov esi, dword [ebx]
call fcn.004ce880
mov ecx, eax
call fcn.004ceb60
push eax
push 0
push 0x40
lea ecx, [esp + 0x5c]
call fcn.004ceb60
push eax
push 0
lea ecx, [esp + 0x134]
call fcn.004ce8d0
mov ecx, eax
call fcn.004ceb60
push eax
push 0x180
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
call dword [esi + 0x80]
test eax, eax
jne 0x4a31c9
mov esi, dword [esp + 0x30]
lea eax, [esp + 0xc8]
push 4
push 0x28
push eax
mov esi, dword [esi + 0x128]
lea ecx, [esp + 0xb4]
mov ebx, dword [esi]
call fcn.004ce880
mov ecx, eax
call fcn.004ceb60
push eax
push dword [esp + 0x34]
mov ecx, esi
call dword [ebx + 0x98]
test eax, eax
jne 0x4a31c9
mov eax, dword [esp + 0xe8]
test al, 0x20
jne 0x4a31c9
or eax, 0x20
lea ecx, [esp + 0x78]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x30]
push 4
push 0x28
mov esi, dword [eax + 0x128]
lea eax, [esp + 0xd0]
push eax
mov ebx, dword [esi]
call fcn.004ce880
mov ecx, eax
call fcn.004ceb60
push eax
push dword [esp + 0x34]
mov ecx, esi
call dword [ebx + 0x94]
mov ebx, dword [esp + 0x30]
lea edx, [esp + 0x58]
push dword [esp + 0x44]
push edx
mov ecx, dword [ebx + 0x138]
lea edx, [esp + 0x20]
push edx
mov eax, dword [ecx]
call dword [eax + 0xa4]
push eax
lea ecx, [esp + 0x30]
call fcn.004cb6a0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a3209
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
call fcn.004cb6a0
lea ecx, [esp + 0x24]
call fcn.0044dba0
mov esi, dword [esp + 0x2c]
push esi
push edi
lea ecx, [esp + 0x44]
call fcn.0049cd60
test edi, edi
je 0x4a3239
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov edi, esi
test esi, esi
je 0x4a324b
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4a2ce4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0xffffffff
test esi, esi
je 0x4a3a6f
mov ecx, dword [ebp + 0x2c]
cmp ecx, 2
jne 0x4a3497
mov ebx, dword [ebp + 0x30]
test ebx, 1
je 0x4a346e
mov ecx, dword [ebp + 0x18]
call fcn.004966f0
test eax, eax
je 0x4a346e
mov eax, dword [ebp + 0x40]
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], 0xc0000103
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
call fcn.004463b0
lea ecx, [esp + 0x540]
call fcn.004cece0
lea ecx, [esp + 0x338]
call fcn.004cece0
test esi, esi
je 0x4a32db
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4a32f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a3307
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x3c]
call fcn.0049bc40
test edi, edi
je 0x4a3eaf
mov eax, dword [edi]
push edi
call dword [eax + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov eax, dword [ebp + 0x40]
mov dword [eax], esi
mov eax, dword [ebp + 0x3c]
mov esi, dword [esp + 0xc]
mov dword [eax], 0xc0000229
jmp 0x4a32b9
mov eax, dword [ebp + 0x40]
mov dword [eax], esi
mov eax, dword [ebp + 0x3c]
mov esi, dword [esp + 0xc]
mov dword [eax], 0xc000003a
jmp 0x4a32b9
mov eax, dword [ebp + 0x40]
and ecx, 0xefffffff
mov esi, dword [esp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], ecx
jmp 0x4a32b9
mov eax, dword [ebp + 0x40]
and ecx, 0xefffffff
mov dword [eax], esi
mov eax, dword [ebp + 0x3c]
mov esi, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x4a32b9
test dword [ebp + 0x30], 1
je 0x4a33b7
mov ecx, dword [ebp + 0x18]
call fcn.004966f0
test eax, eax
je 0x4a33b7
mov eax, dword [ebp + 0x40]
mov dword [eax], esi
mov eax, dword [ebp + 0x3c]
mov esi, dword [esp + 0xc]
mov dword [eax], 0xc0000103
jmp 0x4a32b9
mov eax, dword [ebp + 0x40]
mov dword [eax], esi
mov eax, dword [ebp + 0x3c]
mov esi, dword [esp + 0xc]
mov dword [eax], 0xc0000034
jmp 0x4a32b9
mov eax, dword [ebp + 0x40]
mov esi, dword [esp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], 0xc0000229
jmp 0x4a32b9
mov ecx, dword [0x10109618]
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x4a3453
push 0x100eb46c
push 0x100f1ebc
lea eax, [esp + 0x60]
push eax
push 0x100f1c1c
push 0x100f1e40
push 0x100dfd9c
push 2
lea ecx, [esp + 0x94]
call fcn.00458d10
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045ae90
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045afa0
lea ecx, [esp + 0x78]
call fcn.0045ad30
mov eax, dword [ebp + 0x40]
mov esi, dword [esp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], 0xc0000033
jmp 0x4a32b9
test ebx, 0x40
je 0x4a34e5
test dword [esp + 0x50], 0x10
je 0x4a34e5
mov eax, dword [ebp + 0x40]
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], 0xc00000ba
jmp 0x4a32ac
cmp ecx, 1
je 0x4a3701
cmp ecx, 3
je 0x4a3701
test ecx, ecx
je 0x4a34bb
cmp ecx, 4
je 0x4a34bb
cmp ecx, 5
jne 0x4a3a77
mov esi, dword [ebp + 0x30]
mov eax, esi
mov edx, dword [esp + 0x50]
and eax, 0x40
je 0x4a34d1
test edx, 0x10
jne 0x4a3480
test eax, eax
jne 0x4a34fc
test esi, 1
jne 0x4a34fc
test edx, 0x10
je 0x4a34fc
mov eax, dword [ebp + 0x40]
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], 0xc0000035
jmp 0x4a32ac
test ecx, ecx
jne 0x4a351f
test edx, 0x10
je 0x4a351f
mov eax, dword [ebp + 0x40]
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], 0xc000000d
jmp 0x4a32ac
test esi, 1
je 0x4a3533
mov ecx, dword [ebp + 0x18]
call fcn.004966f0
test eax, eax
jne 0x4a3508
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
cmp eax, 3
jne 0x4a35d4
lea eax, [esp + 0x44]
push eax
call fcn.00497250
add esp, 4
test eax, eax
je 0x4a356c
mov ecx, dword [ebp + 0x40]
and eax, 0xefffffff
mov dword [ecx], 0
mov ecx, dword [ebp + 0x3c]
mov dword [ecx], eax
jmp 0x4a32ac
lea eax, [esp + 0x48]
push eax
mov eax, dword [edi]
lea ecx, [esp + 0xb5c]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.004ce8b0
mov ecx, dword [ebx + 0x138]
lea edx, [esp + 0x48]
push dword [esp + 0x44]
push edx
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
call dword [eax + 0xa4]
push eax
lea ecx, [esp + 0x10]
call fcn.004cb6a0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a35c3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], 0
lea ecx, [esp + 0xb58]
call fcn.004cece0
jmp 0x4a3675
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
xor ebx, ebx
cmp eax, 2
lea eax, [esp + 0x28]
push eax
sete bl
push ebx
push dword [ebp + 0x24]
call fcn.004b5d30
add esp, 8
push eax
push ebx
call fcn.00493540
add esp, 0xc
test eax, eax
jne 0x4a3554
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x544]
call fcn.004ce8b0
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x33c]
call fcn.004ce8b0
mov eax, dword [esp + 0x30]
mov ecx, edi
push dword [esp + 0x28]
mov esi, dword [eax + 0x138]
mov eax, dword [edi]
mov ebx, dword [esi]
call dword [eax + 0x28]
push eax
lea eax, [esp + 0x50]
mov ecx, esi
push eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x28]
push eax
call dword [ebx + 0xa8]
push eax
lea ecx, [esp + 0x10]
call fcn.004cb6a0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a3675
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call dword [eax + 0x38]
xor ebx, ebx
cmp dword [eax], ebx
mov eax, dword [esp + 0x18]
setne bl
test eax, eax
je 0x4a3696
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
je 0x4a36d3
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call dword [eax + 0x38]
mov esi, dword [esp + 0xc]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a36ee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp + 0x2c]
neg edx
sbb edx, edx
and edx, 3
mov dword [esp + 0x24], edx
jmp 0x4a3a77
lea ecx, [esp + 0x3c]
call fcn.0049f9b0
mov esi, dword [esp + 0xc]
mov ecx, dword [ebp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x44]
call fcn.0049cd60
mov edx, dword [ebp + 0x2c]
neg edx
sbb edx, edx
and edx, 3
mov dword [esp + 0x24], edx
jmp 0x4a3a77
mov eax, dword [esp + 0x50]
cmp eax, 0xffffffff
je 0x4a3720
test al, 0x10
je 0x4a382e
mov eax, dword [ebp + 0x40]
mov dword [eax], 1
jmp 0x4a32ac
push dword [ebp + 0x38]
mov eax, dword [ebp + 0x30]
push dword [ebp + 0x34]
mov esi, dword [ebx + 0x128]
and eax, 0xffffefff
push eax
push ecx
push dword [ebp + 0x28]
mov dword [esp + 0x38], 0
lea ecx, [esp + 0x8c]
push dword [ebp + 0x24]
mov ebx, dword [esi]
push dword [ebp + 0x20]
call fcn.004ce880
mov ecx, eax
call fcn.004ceb60
push eax
push dword [ebp + 0x10]
lea eax, [esp + 0x48]
mov ecx, esi
push 0x100001
push eax
call dword [ebx + 0x84]
test eax, eax
je 0x4a3792
mov ecx, dword [ebp + 0x40]
mov dword [ecx], 0
mov ecx, dword [ebp + 0x3c]
mov dword [ecx], eax
lea ecx, [esp + 0x24]
call fcn.004463b0
jmp 0x4a32ac
lea ecx, [esp + 0x130]
call fcn.004cecd0
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x130]
push ecx
push dword [esp + 0x28]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x14]
test eax, eax
jne 0x4a37d7
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x134]
call fcn.004ceb60
push eax
call fcn.004b5da0
add esp, 8
test eax, eax
je 0x4a37ff
mov ecx, dword [ebp + 0x40]
mov dword [ecx], 0
mov ecx, dword [ebp + 0x3c]
mov dword [ecx], eax
lea ecx, [esp + 0x130]
call fcn.004cece0
lea ecx, [esp + 0x24]
call fcn.004463b0
jmp 0x4a32ac
test byte [esp + 0x50], 0x10
lea ecx, [esp + 0x130]
mov eax, 1
mov esi, 0
cmovne esi, eax
call fcn.004cece0
lea ecx, [esp + 0x24]
call fcn.004463b0
test esi, esi
jne 0x4a3712
mov esi, dword [ebp + 0xc]
push esi
call fcn.004b61d0
add esp, 4
test eax, eax
jne 0x4a384f
push esi
call fcn.004b6130
add esp, 4
test eax, eax
je 0x4a3712
push dword [ebp + 0x38]
mov eax, dword [ebp + 0x30]
lea ecx, [esp + 0x7c]
push dword [ebp + 0x34]
mov esi, dword [ebx + 0x128]
and eax, 0xffffefff
push eax
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
mov ebx, dword [esi]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
call fcn.004ce880
mov ecx, eax
call fcn.004ceb60
push eax
push dword [ebp + 0x10]
lea eax, [esp + 0x40]
mov ecx, esi
push 0x100001
push eax
call dword [ebx + 0x84]
mov ecx, eax
test ecx, ecx
jne 0x4a3a5c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
cmp eax, 3
jne 0x4a3933
lea eax, [esp + 0x44]
push eax
call fcn.00497250
add esp, 4
test eax, eax
jne 0x4a3554
lea eax, [esp + 0x48]
push eax
mov eax, dword [edi]
lea ecx, [esp + 0xb5c]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.004ce8b0
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x48]
push dword [esp + 0x44]
push edx
mov ecx, dword [eax + 0x138]
lea edx, [esp + 0x20]
push edx
mov eax, dword [ecx]
call dword [eax + 0xa4]
push eax
lea ecx, [esp + 0x10]
call fcn.004cb6a0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a3922
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], 0
lea ecx, [esp + 0xb58]
call fcn.004cece0
jmp 0x4a39d4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
xor ebx, ebx
cmp eax, 2
lea eax, [esp + 0x28]
push eax
sete bl
push ebx
push dword [ebp + 0x24]
call fcn.004b5d30
add esp, 8
push eax
push ebx
call fcn.00493540
add esp, 0xc
test eax, eax
jne 0x4a3554
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x544]
call fcn.004ce8b0
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x33c]
call fcn.004ce8b0
mov eax, dword [esp + 0x30]
mov ecx, edi
push dword [esp + 0x28]
mov esi, dword [eax + 0x138]
mov eax, dword [edi]
mov ebx, dword [esi]
call dword [eax + 0x28]
push eax
lea eax, [esp + 0x50]
mov ecx, esi
push eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x28]
push eax
call dword [ebx + 0xa8]
push eax
lea ecx, [esp + 0x10]
call fcn.004cb6a0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a39d4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test dword [ebp + 0x30], 0x1000
mov esi, dword [esp + 0xc]
je 0x4a39ea
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x54]
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call dword [eax + 0x38]
xor ebx, ebx
cmp dword [eax], ebx
mov eax, dword [esp + 0x18]
setne bl
test eax, eax
je 0x4a3a0b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
je 0x4a3a3b
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call dword [eax + 0x38]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a3a52
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x24], 1
jmp 0x4a3a7b
lea ecx, [esp + 0x3c]
call fcn.0049f9b0
mov ecx, dword [ebp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x44]
call fcn.0049cd60
mov dword [esp + 0x24], 1
jmp 0x4a3a7b
mov eax, dword [ebp + 0x40]
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], ecx
jmp 0x4a32ac
mov dword [esp + 0x24], 2
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], eax
test eax, eax
je 0x4a3ccc
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x4a3bf7
mov edx, dword [ebp + 0x30]
test edx, 1
jne 0x4a329a
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x64], ecx
add ecx, 2
mov word [esp + 0x64], cx
mov ecx, dword [esp + 0x34]
sub ecx, 2
mov dword [esp + 0x68], ecx
mov esi, dword [eax]
lea eax, [esp + 0x14]
push eax
push edx
push dword [ebp + 0x28]
push 0
push dword [ebp + 0x24]
call fcn.004b5d30
mov ecx, dword [esp + 0x2c]
add esp, 8
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x78]
push eax
call dword [esi + 0xc]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x4a3b89
mov esi, dword [ebp + 0x18]
mov ecx, esi
call fcn.004966f0
test eax, eax
je 0x4a3b89
lea eax, [esp + 0x78]
mov ecx, esi
push eax
call fcn.00496510
mov ecx, esi
mov eax, dword [eax + 4]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.00496200
lea ecx, [esp + 0x6c]
push dword [eax + 4]
push dword [eax]
call fcn.004ce960
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x70]
mov ebx, dword [esi]
call fcn.004ceb60
push eax
mov ecx, esi
call dword [ebx + 0x18]
test eax, eax
jne 0x4a3b85
mov eax, dword [esp + 0x34]
test al, 0x20
jne 0x4a3b85
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x6c]
or eax, 0x20
mov dword [esp + 0x34], eax
push eax
mov ebx, dword [esi]
call fcn.004ceb60
push eax
mov ecx, esi
call dword [ebx + 0x1c]
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x1c], 0
je 0x4a3bc4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [esp + 0x10]
push dword [esp + 0x20]
call fcn.004b6390
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x4a3bc4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
je 0x4a3c52
mov eax, dword [ebp + 0x40]
and ebx, 0xefffffff
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a32ac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4a32ac
push 0x100e03cc
lea ecx, [esp + 0x7c]
call fcn.004ce920
mov ecx, eax
call fcn.004ceb60
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0xa8]
mov eax, dword [eax + 4]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x14]
mov ebx, dword [esi]
push eax
push dword [ebp + 0x30]
push dword [ebp + 0x28]
push dword [ebp + 0xc]
push 0x100e03cc
call fcn.004ce920
mov ecx, eax
call fcn.004ceb60
push eax
mov ecx, esi
call dword [ebx + 0x10]
mov ebx, eax
jmp 0x4a3b89
mov ebx, dword [ebp + 0x30]
lea eax, [esp + 0x64]
mov esi, dword [esp + 0xc]
push ebx
push dword [ebp + 0xc]
push dword [esp + 0x1c]
push eax
lea eax, [esp + 0x84]
push esi
push eax
call fcn.004c18e0
add esp, 0x18
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x34], eax
test eax, eax
je 0x4a3c8b
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
call fcn.004cb6a0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4a3ca7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4a3cb5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a3dae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4a3dae
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4a3daa
mov ebx, dword [ebp + 0x30]
test ebx, 1
jne 0x4a329a
mov dword [esp + 0x14], 0
lea edx, [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
test eax, eax
je 0x4a3d15
mov ecx, dword [ebp + 0x40]
and eax, 0xefffffff
mov dword [ecx], 0
mov ecx, dword [ebp + 0x3c]
mov dword [ecx], eax
jmp 0x4a3be0
push ebx
push dword [ebp + 0xc]
lea eax, [esp + 0x74]
push dword [esp + 0x1c]
push esi
push eax
call fcn.004c2fe0
add esp, 0x14
mov esi, dword [eax]
mov dword [esp + 0x34], esi
test esi, esi
je 0x4a3d3b
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
call fcn.004cb6a0
test esi, esi
je 0x4a3d53
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4a3d61
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esp + 0x1c], 0
je 0x4a3d9c
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [esp + 0x10]
push dword [esp + 0x20]
call fcn.004b6390
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x4a3d9c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a3daa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push dword [ebx + 0x138]
call fcn.004b52c0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.0049fff0
test eax, eax
jne 0x4a3e6f
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
cmp eax, ebx
jne 0x4a3e6f
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4a3e0a
mov eax, dword [ecx]
push dword [esp + 0x40]
call dword [eax + 0x48]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [esp + 0x34]
call fcn.004b52f0
test dword [ebp + 0xc], 0x100000
je 0x4a3e36
test dword [ebp + 0x30], 0x30
jne 0x4a3e36
mov eax, 1
jmp 0x4a3e38
xor eax, eax
mov ecx, dword [esp + 0x30]
push eax
push dword [esp + 0x30]
call fcn.0049f7b0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x40]
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [eax], 0
jmp 0x4a3e8f
mov eax, dword [ebp + 0x44]
mov dword [eax], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a3e86
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x34]
call fcn.004b52f0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4a32b0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4a32b0
mov eax, dword [ebp + 0x40]
mov dword [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40