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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x4010c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
xorps xmm0, xmm0
or dword [ebp - 0xa8], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0xb4], eax
xor eax, eax
mov dword [ebp - 0x80], edx
push edi
mov edi, dword [ebp + 0xc]
mov edx, dword [esi]
mov dword [ebp - 0xac], esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xe0], 1
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0x68], eax
movlpd qword [ebp - 0x94], xmm0
mov dword [ebp - 0xa0], edx
cmp dword [esi + 0x24], eax
jne 0x4aeeb5
mov edx, dword [ebp - 0x80]
call fcn.004962cc
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x4aeeb2
mov edx, dword [edi + 0x3c]
mov ecx, dword [esi]
call fcn.004a2c91
mov dword [ebp - 0x84], eax
mov edx, edi
lea eax, [ebp - 0xd0]
mov ecx, esi
push eax
push ebx
push 0x81
call fcn.004acac3
mov dword [ebp - 0x7c], eax
add esp, 0xc
mov al, byte [edi + 0x2b]
mov byte [ebp - 0x2a], al
mov eax, dword [ebp - 0x80]
cmp dword [eax], 1
jle 0x4adaa3
mov eax, dword [ebx]
mov dword [ebp - 0x44], eax
jmp 0x4adaa7
and dword [ebp - 0x44], 0
mov edx, edi
mov ecx, esi
call fcn.0049313c
test eax, eax
jne 0x4aeeb2
push dword [ebp - 0x7c]
mov edx, edi
mov ecx, esi
call fcn.004963ac
pop ecx
test eax, eax
jne 0x4aeeb2
mov edx, dword [esi + 0x28]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0xc8], edx
lea eax, [edx + 1]
mov dword [esi + 0x28], eax
test byte [edi + 0x1c], 0x80
mov dword [ebp - 0xbc], eax
jne 0x4adaf1
and dword [ebp - 0x48], 0
jmp 0x4adb01
mov ecx, edi
call fcn.00490d43
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xbc]
mov ecx, dword [edi + 8]
xor ebx, ebx
mov dword [ebp - 0x8c], ebx
test ecx, ecx
je 0x4adb39
mov edi, dword [ebp - 0x34]
mov edx, eax
cmp dword [ebp - 0x48], ecx
mov eax, edx
cmovne eax, edi
inc edx
mov dword [esi + 0x28], edx
inc ebx
mov ecx, dword [ecx + 0x14]
mov edi, eax
test ecx, ecx
jne 0x4adb15
mov dword [ebp - 0x34], edi
mov edx, eax
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x8c], ebx
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x4adb5b
mov edx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x34], edx
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xa0]
push 0
mov dword [eax + 0x34], edx
movsx eax, word [edi + 0x22]
add eax, ebx
lea eax, [eax*4 + 6]
add eax, ebx
push eax
call fcn.004597ba
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x4c], ecx
test ecx, ecx
je 0x4aeeaf
movsx eax, word [edi + 0x22]
lea eax, [ecx + eax*4]
lea ecx, [eax + 4]
mov dword [ebp - 0xb0], eax
lea eax, [ebx + 1]
push eax
lea ecx, [ecx + ebx*4]
push 1
push ecx
mov dword [ebp - 0xb8], ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0xb8]
xor edx, edx
add esp, 0xc
mov ecx, edx
mov byte [eax + ebx + 1], dl
xor eax, eax
cmp ax, word [edi + 0x22]
jge 0x4adbe1
mov esi, dword [ebp - 0x4c]
or dword [esi + ecx*4], 0xffffffff
inc ecx
movsx eax, word [edi + 0x22]
cmp ecx, eax
jl 0x4adbce
mov esi, dword [ebp - 0xac]
mov eax, dword [ebp - 0x80]
xorps xmm0, xmm0
mov dword [ebp - 0x24], eax
mov ecx, esi
mov eax, dword [ebp - 0xb4]
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 0x200
call fcn.004a5717
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4ade6c
mov ecx, dword [ebp - 0x3c]
xor ebx, ebx
xor al, al
mov byte [ebp - 0x3d], 0
mov byte [ebp - 0x29], al
mov dword [ebp - 0x54], ebx
cmp dword [ecx], ebx
jle 0x4addf1
lea edi, [ecx + 8]
mov dword [ebp - 0x50], edi
mov ecx, dword [edi + 4]
call fcn.0045c8b9
cmp dword [ebp - 0x44], 0
mov cl, al
mov byte [ebp - 0x61], cl
jne 0x4adc61
mov edx, dword [edi]
lea ecx, [ebp - 0x28]
call fcn.00484d9a
test eax, eax
jne 0x4ade6c
mov cl, byte [ebp - 0x61]
mov edx, dword [ebp - 0x38]
xor edi, edi
movsx eax, word [edx + 0x22]
mov dword [ebp - 0xd4], eax
test eax, eax
jle 0x4adca4
mov ebx, dword [edx + 4]
cmp byte [ebx + 0xa], cl
jne 0x4adc96
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebx]
mov edx, dword [eax + 4]
call fcn.0045c824
test eax, eax
je 0x4add05
mov eax, dword [ebp - 0xd4]
mov cl, byte [ebp - 0x61]
inc edi
add ebx, 0x10
cmp edi, eax
jl 0x4adc77
mov ebx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0xa8]
mov cl, byte [ebp - 0x29]
mov dword [ebp - 0xa8], eax
movsx eax, word [edx + 0x22]
mov byte [ebp - 0x29], cl
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x98], ecx
cmp edi, eax
jl 0x4add64
cmp dword [ebp - 0x48], 0
jne 0x4ade82
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 4]
call fcn.004871f5
test eax, eax
je 0x4ade82
mov eax, dword [ebp - 0x50]
or edi, 0xffffffff
mov byte [ebp - 0x29], 1
mov dword [ebp - 0xa8], ebx
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
jmp 0x4add68
mov edx, dword [ebp - 0x38]
movsx eax, word [edx + 0x20]
cmp edi, eax
jne 0x4add2a
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x54]
mov byte [ebp - 0x29], 1
mov dword [ebp - 0xa8], ebx
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
jmp 0x4add59
cmp dword [ebp - 0x48], 0
je 0x4add44
mov eax, dword [edx + 4]
mov ecx, edi
add ecx, ecx
test byte [eax + ecx*8 + 0xe], 1
je 0x4add44
mov byte [ebp - 0x3d], 1
jmp 0x4add56
mov eax, dword [edx + 4]
mov ecx, edi
add ecx, ecx
test byte [eax + ecx*8 + 0xe], 0x60
jne 0x4ade5c
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
mov dword [eax + edi*4], ebx
jmp 0x4adca4
test edi, edi
jns 0x4add6f
mov edx, 0x42eeec
jmp 0x4add97
mov eax, dword [edx + 4]
mov ecx, edi
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa8], eax
mov al, byte [ebp - 0x29]
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x84]
add ecx, ecx
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
mov eax, dword [ebp - 0x38]
mov ecx, esi
push edx
push dword [eax]
push 0x17
pop edx
call fcn.0048fcdf
add esp, 0xc
cmp eax, 1
je 0x4ade6c
cmp eax, 2
jne 0x4addd3
mov eax, dword [ebp - 0x4c]
or dword [eax + edi*4], 0xffffffff
mov eax, dword [ebp - 0x3c]
inc ebx
mov edi, dword [ebp - 0x50]
add edi, 0x14
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], edi
cmp ebx, dword [eax]
jl 0x4adc39
mov edi, dword [ebp - 0x38]
mov al, byte [ebp - 0x29]
mov bl, byte [ebp - 0x3d]
add bl, al
test byte [edi + 0x1c], 0x60
mov byte [ebp - 0x70], bl
je 0x4adec7
mov esi, dword [ebp - 0x38]
xor ecx, ecx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x60], ecx
cmp ax, word [esi + 0x22]
jge 0x4adebb
xor ebx, ebx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + edi*4], 0
jge 0x4adea3
mov edx, dword [esi + 4]
add edx, ebx
test byte [edx + 0xe], 0x60
je 0x4adea3
movzx eax, byte [ebp - 0x29]
mov ecx, esi
push eax
call fcn.00490862
mov edx, dword [ebp - 0x4c]
mov ecx, eax
call fcn.0049c545
pop ecx
test eax, eax
je 0x4adea0
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x60], ecx
mov dword [eax + edi*4], 0x1869f
jmp 0x4adea3
push dword [ebx]
push 0x4322dc
push esi
call fcn.0045c6d7
add esp, 0xc
mov ebx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xa0]
call fcn.004594d9
jmp 0x4aeeb2
imul eax, ebx, 0x14
mov ebx, dword [ebp - 0x3c]
push dword [eax + ebx + 0xc]
push 0x432300
push esi
call fcn.0045c6d7
add esp, 0xc
mov byte [esi + 0x11], 1
jmp 0x4ade6f
mov ecx, dword [ebp - 0x60]
movsx eax, word [esi + 0x22]
inc edi
add ebx, 0x10
cmp edi, eax
jl 0x4ade1b
test ecx, ecx
jne 0x4ade06
mov esi, dword [ebp - 0xac]
mov edi, dword [ebp - 0x38]
mov bl, byte [ebp - 0x70]
cmp byte [edi + 0x2b], 1
jne 0x4aded5
or eax, 0xffffffff
or ecx, 0xffffffff
jmp 0x4adeec
xorps xmm0, xmm0
movlpd qword [ebp - 0xd8], xmm0
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd8]
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x40], eax
movzx eax, bl
push eax
push dword [ebp - 0x4c]
mov dword [edx + 0x44], ecx
mov edx, edi
mov ecx, esi
call fcn.0049a77c
cmp dword [ebp + 0x10], 5
mov edx, eax
pop ecx
pop ecx
mov dword [ebp - 0x6c], edx
jne 0x4adf19
mov dword [ebp - 8], 1
mov edi, dword [edi + 8]
xor ecx, ecx
mov dword [ebp - 0xe4], ecx
test edi, edi
je 0x4ae057
mov eax, dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0x54], eax
test bl, bl
jne 0x4ae00d
cmp edx, 1
jg 0x4ae00d
cmp edi, dword [ebp - 0x48]
je 0x4ae00d
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x4adf70
movzx eax, byte [ebp - 0x29]
mov edx, dword [ebp - 0x4c]
push eax
call fcn.0049c545
pop ecx
test eax, eax
jne 0x4ae00d
mov eax, dword [ebp - 0x54]
xor ecx, ecx
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0x60], ecx
cmp dx, word [edi + 0x32]
jae 0x4ae024
mov dword [ebp - 0x88], edx
mov eax, dword [edi + 4]
movzx eax, word [eax + ecx*2]
test ax, ax
js 0x4adfa9
mov esi, dword [ebp - 0x4c]
cwde
mov eax, dword [esi + eax*4]
mov esi, dword [ebp - 0xac]
not eax
shr eax, 0x1f
jmp 0x4adfcd
movzx eax, byte [ebp - 0x29]
mov ecx, dword [edi + 0x28]
mov edx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x88]
mov ecx, dword [ecx + eax + 8]
call fcn.0049c545
mov edx, dword [ebp - 0x88]
pop ecx
mov ecx, dword [ebp - 0x60]
test eax, eax
jne 0x4adfe8
movzx eax, word [edi + 0x32]
inc ecx
add edx, 0x14
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x88], edx
cmp ecx, eax
jl 0x4adf89
jmp 0x4ae021
mov ebx, dword [esi + 0x2c]
inc ebx
mov dword [esi + 0x2c], ebx
movzx eax, word [edi + 0x34]
add eax, ebx
cmp dword [ebp + 0x10], 0xb
mov dword [esi + 0x2c], eax
jne 0x4ae01d
cmp byte [edi + 0x36], 5
jne 0x4ae01d
mov dword [ebp - 8], 1
jmp 0x4ae01d
mov ebx, dword [esi + 0x2c]
inc ebx
mov dword [esi + 0x2c], ebx
movzx eax, word [edi + 0x34]
add eax, ebx
mov dword [esi + 0x2c], eax
test ebx, ebx
jne 0x4ae029
mov eax, dword [ebp - 0x54]
mov byte [eax], 0
jmp 0x4ae02c
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xb0]
mov dword [edx + ecx*4], ebx
inc ecx
mov edi, dword [edi + 0x14]
inc eax
mov edx, dword [ebp - 0x6c]
mov bl, byte [ebp - 0x70]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0x54], eax
test edi, edi
jne 0x4adf36
mov edx, dword [ebp - 0xb0]
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [edx + ecx*4], eax
cmp dword [ebp - 8], 0
je 0x4ae084
mov eax, dword [ebp - 0x8c]
inc eax
push eax
push 1
push dword [ebp - 0xb8]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [esi + 0x12], 0
mov ebx, dword [ebp - 0x30]
jne 0x4ae094
or dword [ebx + 0x98], 0x10
cmp dword [ebp - 0x7c], 0
jne 0x4ae0a4
cmp dword [ebp - 0x6c], 0
jne 0x4ae0a4
xor edx, edx
jmp 0x4ae0a7
xor edx, edx
inc edx
push dword [ebp - 0x84]
mov ecx, esi
call fcn.004955b2
mov edi, dword [ebp - 0x38]
pop ecx
cmp byte [edi + 0x2b], 1
je 0x4ae13d
mov eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xb0]
mov edx, dword [esi + 0x2c]
inc edx
cmp byte [ebp - 0x3d], 0
mov dword [ebp - 0x9c], edx
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0xdc], eax
mov dword [esi + 0x2c], edx
mov dword [ebp - 0x58], edx
jne 0x4ae0f8
cmp dword [ebp - 0x7c], 0
jne 0x4ae0f8
mov eax, dword [ebp - 0x6c]
mov ecx, edx
test eax, eax
je 0x4ae10d
movsx ecx, word [edi + 0x22]
lea eax, [edx + 1]
add ecx, edx
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x2c], ecx
cmp byte [ebp - 0x70], 0
jne 0x4ae11d
cmp dword [ebp - 0x7c], 0
jne 0x4ae11d
test eax, eax
je 0x4ae12b
lea eax, [ecx + 1]
mov dword [ebp - 0x9c], eax
mov ecx, eax
mov dword [esi + 0x2c], eax
lea eax, [ecx + 1]
mov dword [ebp - 0xc0], eax
movsx eax, word [edi + 0x22]
add eax, ecx
mov dword [esi + 0x2c], eax
mov cl, byte [ebp - 0x2a]
cmp cl, 2
jne 0x4ae164
mov ecx, dword [esi + 0x100]
mov eax, dword [edi]
mov dword [ebp - 0xd4], ecx
mov cl, byte [ebp - 0x2a]
mov dword [ebp - 0xf4], esi
mov dword [esi + 0x100], eax
jmp 0x4ae17c
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0x44], 0
jne 0x4ae1b0
cmp cl, 2
jne 0x4ae19d
push dword [ebp - 0x34]
mov edx, edi
mov ecx, esi
push 0
push 0
push dword [ebp - 0x74]
call fcn.00496429
add esp, 0x10
mov edx, dword [ebp - 0x74]
lea ecx, [ebp - 0x28]
call fcn.00484d9a
test eax, eax
jne 0x4aee8d
cmp byte [edi + 0x2b], 1
jne 0x4ae1dc
push dword [ebp + 0x10]
mov ebx, dword [ebp - 0x3c]
mov ecx, esi
push dword [ebp - 0x74]
mov edx, dword [ebp - 0x80]
push dword [ebp - 0x4c]
push dword [ebp - 0x98]
push ebx
push edi
call fcn.004aeefa
add esp, 0x18
jmp 0x4aee90
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax + 0x24]
xor eax, eax
and ecx, 1
or eax, ecx
je 0x4ae237
cmp dword [esi + 0x7c], 0
jne 0x4ae237
cmp byte [esi + 0x12], 0
jne 0x4ae237
cmp byte [esi + 0x9d], 0
jne 0x4ae237
cmp dword [ebp - 0xb4], 0
jne 0x4ae237
mov eax, dword [esi + 0x2c]
mov ecx, ebx
inc eax
push 0
push eax
push 0
push 0x47
pop edx
mov dword [ebp - 0xec], eax
mov dword [esi + 0x2c], eax
call fcn.004746eb
add esp, 0xc
cmp dword [ebp - 0x44], 0
jne 0x4ae341
test byte [edi + 0x1c], 0x80
jne 0x4ae341
push dword [ebp - 0x58]
mov ecx, ebx
push dword [ebp - 0xdc]
push 0
push 0x4b
pop edx
call fcn.004746eb
mov ecx, dword [esi + 0x28]
add esp, 0xc
mov dword [ebp - 0x5c], ecx
push dword [ebp - 0xdc]
lea eax, [ecx + 1]
push 0
push ecx
push 0x76
pop edx
mov ecx, ebx
mov dword [esi + 0x28], eax
call fcn.004746eb
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 0xb4], 0
mov dword [ebp - 0x60], ebx
je 0x4ae430
and dword [ebp - 0xc4], 0
push 0x10
push dword [ebp - 0x54]
mov dword [ebp - 0x90], 1
push dword [ebp - 0x74]
push esi
call fcn.0048a31b
mov eax, dword [ebp - 0xd4]
add esp, 0x10
and dword [ebp - 0xe0], 0
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x34]
test byte [edi + 0x1c], 0x80
jne 0x4ae57c
mov edi, dword [ebp - 0x30]
mov ecx, edi
push 0
push dword [ebp - 0x58]
push edx
mov edx, 0x87
call fcn.004746eb
mov ecx, dword [ebp - 0x90]
add esp, 0xc
test ecx, ecx
jne 0x4ae566
mov eax, dword [esi + 0x2c]
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0xe4]
inc eax
mov edx, dword [ebp - 0xb0]
push dword [ebp - 0xdc]
mov dword [esi + 0x2c], eax
push dword [ebp - 0x5c]
mov dword [edx + ecx*4], eax
mov edx, 0x80
mov ecx, edi
call fcn.004746eb
add esp, 0xc
jmp 0x4ae645
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4ae34e
movzx ecx, word [eax + 0x32]
jmp 0x4ae350
xor ecx, ecx
mov eax, dword [esi + 0x2c]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x78], ecx
inc edi
movsx ecx, cx
lea edx, [eax + 1]
add eax, ecx
add eax, edi
mov dword [ebp - 0xa4], edx
cmp dword [ebp - 0xb4], 0
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x68], eax
mov dword [esi + 0x2c], eax
jne 0x4ae50c
cmp byte [ebp - 0x2a], 2
jne 0x4ae38c
movsx eax, word [edi + 0x22]
jmp 0x4ae38e
xor eax, eax
lea edi, [eax + ecx]
mov eax, dword [esi + 0x28]
add edi, dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
inc eax
cmp dword [ebp - 0x48], 0
mov dword [esi + 0x28], eax
je 0x4ae3ba
lea eax, [ecx - 1]
mov ecx, ebx
add eax, edx
push eax
push edx
push 0
push 0x4b
pop edx
call fcn.004746eb
add esp, 0xc
push 0
push edi
push dword [ebp - 0x5c]
mov ecx, ebx
push 0x76
pop edx
call fcn.004746eb
mov ebx, eax
add esp, 0xc
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], ebx
test eax, eax
je 0x4ae3fa
mov edx, eax
mov ecx, esi
call fcn.004959e4
test eax, eax
je 0x4ae3f7
mov ecx, dword [ebp - 0x30]
mov edx, eax
push 0xfffffffffffffff8
mov word [eax + 8], di
call fcn.00474f1c
pop ecx
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x44], 0
je 0x4ae42d
mov ebx, dword [ebp - 0x5c]
mov edx, ebx
push ecx
push ecx
push dword [ebp - 0x74]
mov ecx, esi
push dword [ebp - 0x80]
push dword [ebp - 0x3c]
push eax
call fcn.004ad746
add esp, 0x18
cmp byte [ebp - 0x2a], 2
jne 0x4ae524
mov dword [ebp - 0x34], ebx
jmp 0x4ae524
mov edi, dword [ebp - 0x38]
cmp byte [esi + 0x12], 0
push 4
pop eax
jne 0x4ae45b
cmp dword [ebp - 0x7c], 0
jne 0x4ae45b
cmp dword [ebp - 0x6c], 0
jne 0x4ae45b
cmp byte [ebp - 0x70], 0
jne 0x4ae45b
cmp dword [ebp - 8], 0
jne 0x4ae45b
test byte [ebp - 0x10], 0x40
push 0xc
pop ecx
cmove eax, ecx
push dword [ebp - 0xbc]
mov edx, dword [ebp - 0x80]
mov ecx, esi
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x74]
call fcn.004bba53
mov edx, eax
add esp, 0x18
mov dword [ebp - 0xc4], edx
test edx, edx
je 0x4aee8d
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
movzx edx, byte [edx + 0x2e]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x90], edx
mov eax, dword [eax + 0x30]
and eax, 1
mov dword [ebp - 0xe0], eax
cmp edx, 1
je 0x4ae2d8
cmp dword [esi + 0x78], 0
mov eax, esi
cmovne eax, dword [esi + 0x78]
cmp edx, 2
mov edx, dword [ebp - 0x34]
mov byte [eax + 0x14], 1
jne 0x4ae2db
test ecx, ecx
js 0x4ae2db
cmp ecx, edx
je 0x4ae2db
mov eax, ecx
mov ecx, dword [ebp - 0xb8]
sub eax, dword [ebp - 0xc8]
cmp byte [eax + ecx], 0
je 0x4ae2db
and dword [ebp - 0x90], 0
jmp 0x4ae2db
and dword [ebp - 0x5c], 0
xor ebx, ebx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x44], ebx
je 0x4ae297
cmp dword [esi + 0x78], 0
mov eax, esi
mov edx, dword [ebp - 0xa4]
cmovne eax, dword [esi + 0x78]
xor ecx, ecx
mov ebx, dword [ebp - 0xd4]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x68], edx
mov byte [eax + 0x14], 1
mov eax, dword [ebp - 0x78]
movsx edi, ax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0x88], eax
jmp 0x4ae651
test ebx, ebx
je 0x4ae64b
mov edx, ebx
mov ecx, edi
call fcn.00474e0d
jmp 0x4ae645
mov eax, dword [ebp - 0x78]
xor edi, edi
movsx ebx, ax
test ebx, ebx
jle 0x4ae5bb
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x30]
add eax, edi
push eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 4]
movsx eax, word [eax + edi*2]
push eax
push edx
mov edx, esi
call fcn.004886d1
mov edx, dword [ebp - 0x34]
add esp, 0xc
inc edi
cmp edi, ebx
jl 0x4ae58b
mov esi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x4ae5ef
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x4ae5da
mov ecx, dword [ebp - 0x30]
call fcn.00474e0d
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x78]
cwde
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x68], eax
jmp 0x4ae64b
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x4ae608
mov ecx, dword [ebp - 0xa0]
mov edx, eax
call fcn.0049afd1
mov ecx, eax
mov edx, dword [ebp - 0x78]
mov ebx, dword [ebp - 0xa4]
movsx eax, dx
push eax
push ecx
push dword [ebp - 0x68]
mov ecx, dword [ebp - 0x30]
push eax
push ebx
push 0x61
pop edx
call fcn.00474815
mov eax, dword [ebp - 0x78]
add esp, 0x14
mov ecx, dword [ebp - 0x30]
mov edx, 0x8a
cwde
push eax
push ebx
push dword [ebp - 0x68]
push dword [ebp - 0x5c]
call fcn.00474a00
add esp, 0x10
mov ecx, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x84]
cmp dword [ebp - 0xb4], 0
jne 0x4ae8a7
cmp dword [ebp - 0x44], 0
jne 0x4ae674
cmp ecx, 2
je 0x4ae674
mov ecx, dword [ebp - 0xc4]
call fcn.004bc4c8
cmp byte [ebp - 0x2a], 2
je 0x4ae70f
mov ecx, dword [ebp - 0x90]
xor edi, edi
test ecx, ecx
je 0x4ae6e1
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0xb8]
test eax, eax
js 0x4ae6a4
sub eax, dword [ebp - 0xc8]
mov byte [eax + edx], 0
test ebx, ebx
js 0x4ae6b4
mov eax, ebx
sub eax, dword [ebp - 0xc8]
mov byte [eax + edx], 0
cmp ecx, 2
jne 0x4ae6e1
mov ecx, dword [ebp - 0x8c]
xor eax, eax
test ebx, ebx
setns al
sub ecx, eax
test ecx, ecx
jle 0x4ae6e1
mov ecx, dword [ebp - 0x30]
xor eax, eax
push eax
push eax
push eax
push 0xf
pop edx
call fcn.004746eb
add esp, 0xc
mov edi, eax
mov edx, dword [ebp - 0x38]
xor ecx, ecx
push ecx
push ecx
push dword [ebp - 0xb8]
push dword [ebp - 0xc8]
push ecx
push 0x71
mov ecx, esi
call fcn.0049d815
add esp, 0x18
test edi, edi
je 0x4ae70f
mov ecx, dword [ebp - 0x30]
mov edx, edi
call fcn.00474ccb
mov edi, dword [ebp - 0x90]
test edi, edi
je 0x4ae77c
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x88], eax
je 0x4ae747
cmp ebx, eax
mov ebx, dword [ebp - 0x30]
je 0x4ae74a
push dword [ebp - 0xcc]
mov ecx, ebx
push dword [ebp - 0x68]
push dword [ebp - 0x54]
push eax
push 0x1c
pop edx
call fcn.00474a00
add esp, 0x10
jmp 0x4ae74a
mov ebx, dword [ebp - 0x30]
cmp edi, 1
je 0x4ae759
mov eax, dword [esi + 0x38]
dec eax
mov dword [ebp - 0x50], eax
mov dword [esi + 0x38], eax
cmp dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x58]
cmovne eax, dword [ebp - 0x68]
push 0
push dword [ebp - 0x54]
push eax
push 0x32
pop edx
mov ecx, ebx
call fcn.004746eb
add esp, 0xc
jmp 0x4ae8aa
cmp dword [ebp - 0x48], 0
jne 0x4ae7d2
cmp dword [ebp - 0x44], 0
jne 0x4ae7d2
mov ebx, dword [ebp - 0x30]
mov ecx, ebx
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x5c]
push 0x24
pop edx
call fcn.004746eb
mov edi, dword [esi + 0x38]
add esp, 0xc
dec edi
mov edx, 0x87
mov ecx, ebx
mov dword [ebp - 0x50], edi
mov dword [esi + 0x38], edi
push 0
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
call fcn.004746eb
mov dword [ebp - 0xf0], eax
add esp, 0xc
push dword [ebp - 0x58]
push edi
push dword [ebp - 0x34]
push 0x1f
jmp 0x4ae76c
mov edi, dword [esi + 0x38]
mov ebx, dword [ebp - 0x30]
dec edi
push 0
push dword [ebp - 0x54]
mov ecx, ebx
mov dword [ebp - 0x50], edi
push dword [ebp - 0x5c]
mov dword [esi + 0x38], edi
push 0x24
pop edx
call fcn.004746eb
mov eax, dword [ebx + 0x6c]
add esp, 0xc
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4ae888
cmp byte [ebp - 0x2a], 2
je 0x4ae8ad
cmp dword [ebp - 0x48], 0
je 0x4ae86f
mov eax, dword [ebp - 0x78]
xor edi, edi
movsx ebx, ax
test ebx, ebx
jle 0x4ae84f
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0xa4]
mov ecx, esi
add eax, edi
push eax
push edi
push dword [ebp - 0x5c]
push 0x5e
pop edx
call fcn.004746eb
add esp, 0xc
inc edi
cmp edi, ebx
jl 0x4ae827
mov esi, dword [ebp - 0xac]
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x30]
cwde
push eax
push dword [ebp - 0xa4]
push dword [ebp - 0x50]
push dword [ebp - 0x34]
mov ecx, ebx
push 0x1c
pop edx
call fcn.00474a00
add esp, 0x10
jmp 0x4ae8aa
push 0
push dword [ebp - 0x58]
mov edx, 0x87
mov ecx, ebx
push dword [ebp - 0x5c]
call fcn.004746eb
jmp 0x4ae7c4
push 0
push dword [ebp - 0x68]
mov edx, 0x86
mov ecx, ebx
push dword [ebp - 0x5c]
call fcn.004746eb
add esp, 0xc
push 0
push dword [ebp - 0x68]
push edi
jmp 0x4ae85d
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x44]
cmp byte [ebp - 0x29], 0
je 0x4ae8f6
mov edi, dword [ebp - 0x9c]
push edi
test eax, eax
jne 0x4ae8ce
mov edx, dword [ebp - 0x98]
mov ecx, esi
call fcn.00489c9f
pop ecx
jmp 0x4ae8e4
push dword [ebp - 0xa8]
mov ecx, ebx
push dword [ebp - 0x5c]
push 0x5e
pop edx
call fcn.004746eb
add esp, 0xc
push 0
push 0
push edi
push 0xd
pop edx
mov ecx, ebx
call fcn.004746eb
add esp, 0xc
cmp byte [ebp - 0x3d], 0
mov eax, dword [ebp - 0x6c]
jne 0x4ae90c
test eax, eax
jne 0x4ae910
cmp dword [ebp - 0x7c], eax
je 0x4ae9e6
test eax, eax
je 0x4ae91e
mov edx, dword [ebp - 0x38]
mov ecx, esi
call fcn.0049a6a2
mov ebx, eax
jmp 0x4ae920
xor ebx, ebx
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x7c]
mov ecx, esi
push dword [ebp - 0x38]
push 3
push 0
push dword [ebp - 0x3c]
call fcn.004ad611
mov ecx, dword [ebp - 0x38]
or ebx, eax
xor eax, eax
add esp, 0x14
xor edi, edi
cmp ax, word [ecx + 0x22]
jge 0x4ae9c1
xor esi, esi
mov eax, dword [ecx + 4]
mov edx, edi
movzx eax, word [eax + esi + 0xe]
mov dword [ebp - 0x8c], eax
call fcn.00490d7b
movsx edx, ax
add edx, dword [ebp - 0xe8]
cmp ebx, 0xffffffff
je 0x4ae999
cmp edi, 0x20
jge 0x4ae97e
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
test ebx, eax
jne 0x4ae999
test byte [ebp - 0x8c], 1
jne 0x4ae999
mov ecx, dword [ebp - 0x30]
push 0
push edx
push 0
push 0x4b
pop edx
call fcn.004746eb
jmp 0x4ae9a9
mov ecx, dword [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x38]
push edi
push dword [ebp - 0x34]
call fcn.004886d1
mov ecx, dword [ebp - 0x38]
add esp, 0xc
inc edi
add esi, 0x10
movsx eax, word [ecx + 0x22]
cmp edi, eax
jl 0x4ae94b
mov esi, dword [ebp - 0xac]
cmp byte [ebp - 0x29], 0
jne 0x4ae9e6
cmp dword [ebp - 0x48], 0
jne 0x4ae9e6
mov ecx, dword [ebp - 0x30]
push 0
push dword [ebp - 0x9c]
push dword [ebp - 0x58]
push 0x50
pop edx
call fcn.004746eb
add esp, 0xc
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x7c]
mov ecx, esi
push dword [ebp - 0x38]
push 1
push 1
push dword [ebp - 0x3c]
call fcn.004ad611
mov edx, dword [ebp - 0xc0]
xor ebx, ebx
and dword [ebp - 0xe8], ebx
add esp, 0x14
mov dword [ebp - 0x60], eax
mov edi, edx
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax + 0x22]
cmp word [ebp - 0xe8], cx
jge 0x4aeb0e
mov edx, ecx
xor ecx, ecx
mov dword [ebp - 0x8c], ecx
movsx eax, word [eax + 0x20]
cmp ebx, eax
je 0x4aeab5
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
movzx eax, word [eax + ecx + 0xe]
test al, 0x60
je 0x4aea56
test al, 0x20
je 0x4aeae4
dec edi
jmp 0x4aeae4
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
js 0x4aea98
cmp dword [ebp - 0x44], 0
je 0x4aea83
cmp byte [ebp - 0x2a], 2
jne 0x4aea71
movzx eax, dx
jmp 0x4aea77
mov eax, dword [ebp - 0x78]
movzx eax, ax
push edi
cwde
add eax, ecx
push eax
push dword [ebp - 0x5c]
push 0x5e
jmp 0x4aeabc
mov eax, dword [ebp - 0x3c]
imul edx, ecx, 0x14
mov ecx, esi
push edi
mov edx, dword [edx + eax + 8]
call fcn.00489c9f
pop ecx
jmp 0x4aeae4
test dword [ebp - 0xd0], 1
je 0x4aeaca
cmp ebx, 0x1f
jg 0x4aeaca
xor eax, eax
mov ecx, ebx
inc eax
shl eax, cl
test dword [ebp - 0x60], eax
jne 0x4aeaca
push 0
push edi
push 0
push 0x4b
mov ecx, dword [ebp - 0x30]
pop edx
call fcn.004746eb
add esp, 0xc
jmp 0x4aeae4
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
push edi
push ebx
push dword [ebp - 0x34]
call fcn.004886d1
add esp, 0xc
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0x38]
inc ebx
add dword [ebp - 0x8c], 0x10
inc edi
mov ecx, dword [ebp - 0x8c]
movzx eax, word [eax + 0x22]
mov edx, eax
cwde
cmp ebx, eax
mov eax, dword [ebp - 0x38]
jl 0x4aea31
mov edx, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0x38]
test byte [ebx + 0x1c], 0x60
je 0x4aeb20
push ebx
mov ecx, esi
call fcn.0049b24b
pop ecx
test byte [ebp - 0xd0], 1
je 0x4aec38
push dword [ebp - 0xc0]
mov edi, dword [ebp - 0x30]
mov edx, ebx
mov ecx, edi
call fcn.0049b076
mov edx, dword [ebp - 0x7c]
pop ecx
push dword [ebp - 0x50]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp - 0x58]
push ebx
push 1
push dword [ebp - 0x3c]
push 0x81
call fcn.004ad585
add esp, 0x1c
cmp byte [ebp - 0x2a], 2
je 0x4aedc8
cmp dword [ebp - 0x48], 0
mov ecx, edi
je 0x4aeb8f
push dword [ebp - 0xcc]
push dword [ebp - 0x68]
push dword [ebp - 0x50]
push dword [ebp - 0x34]
push 0x1c
pop edx
call fcn.00474a00
add esp, 0x10
jmp 0x4aeba3
push dword [ebp - 0x58]
push dword [ebp - 0x50]
push dword [ebp - 0x34]
push 0x1f
pop edx
call fcn.004746eb
add esp, 0xc
mov eax, dword [ebp - 0x38]
xor edx, edx
mov ecx, dword [ebp - 0xc0]
xor edi, edi
mov ebx, ecx
cmp dx, word [eax + 0x22]
jge 0x4aec22
xor ecx, ecx
mov esi, eax
mov dword [ebp - 0xd0], ecx
mov eax, dword [esi + 4]
movzx eax, word [eax + ecx + 0xe]
test al, 0x60
je 0x4aebda
test al, 0x20
lea eax, [ebx - 1]
cmove eax, ebx
mov ebx, eax
jmp 0x4aec03
mov eax, dword [ebp - 0x4c]
cmp dword [eax + edi*4], 0
jge 0x4aec03
movsx eax, word [esi + 0x20]
cmp edi, eax
je 0x4aec03
mov ecx, dword [ebp - 0x30]
mov edx, esi
push ebx
push edi
push dword [ebp - 0x34]
call fcn.004886d1
mov ecx, dword [ebp - 0xd0]
add esp, 0xc
movsx eax, word [esi + 0x22]
add ecx, 0x10
inc edi
mov dword [ebp - 0xd0], ecx
inc ebx
cmp edi, eax
jl 0x4aebc2
mov esi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0x38]
test byte [ebx + 0x1c], 0x60
je 0x4aec42
mov edx, ecx
mov ecx, esi
push ebx
call fcn.0049b24b
pop ecx
jmp 0x4aec42
cmp byte [ebp - 0x2a], 2
je 0x4aedc8
mov edi, dword [ebp - 0x50]
lea eax, [ebp - 8]
push 0
push dword [ebp - 0x4c]
mov edx, ebx
mov ecx, esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x70]
push dword [ebp - 0x58]
push dword [ebp - 0x9c]
push dword [ebp - 0xbc]
push dword [ebp - 0x34]
push dword [ebp - 0xb0]
call fcn.0049c5a3
add esp, 0x2c
cmp dword [ebp - 8], 0
jne 0x4aec86
mov al, byte [ebp - 0x70]
test al, al
je 0x4aecc7
cmp dword [ebp - 0x48], 0
je 0x4aecae
push dword [ebp - 0xcc]
push dword [ebp - 0x68]
push edi
push dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
mov ecx, edi
push 0x1c
pop edx
call fcn.00474a00
add esp, 0x10
mov al, byte [ebp - 0x70]
jmp 0x4aecca
push dword [ebp - 0x58]
push edi
push dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
mov ecx, edi
push 0x1f
pop edx
call fcn.004746eb
add esp, 0xc
jmp 0x4aeca9
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x6c], 0
je 0x4aece8
movzx eax, al
mov edx, ebx
push eax
push dword [ebp - 0x4c]
mov ecx, esi
push 0
push dword [ebp - 0x58]
call fcn.0049a277
add esp, 0x10
push 0xffffffffffffffff
push dword [ebp - 0xb0]
mov edx, ebx
mov ecx, esi
push dword [ebp - 0xbc]
push dword [ebp - 0x34]
call fcn.004970df
add esp, 0x10
cmp dword [ebp - 0xe0], 0
je 0x4aed24
push 0
push 0
push dword [ebp - 0x34]
mov edx, 0x8f
mov ecx, edi
call fcn.004746eb
add esp, 0xc
mov eax, dword [ebp - 0x6c]
cmp eax, 1
jg 0x4aed33
mov cl, byte [ebp - 0x70]
test cl, cl
je 0x4aed4f
push 0
push 0
push dword [ebp - 0x34]
mov edx, 0x82
mov ecx, edi
call fcn.004746eb
mov eax, dword [ebp - 0x6c]
add esp, 0xc
mov cl, byte [ebp - 0x70]
test eax, eax
je 0x4aed6e
movzx eax, cl
mov edx, ebx
push eax
push dword [ebp - 0x4c]
mov ecx, esi
push dword [ebp - 0x9c]
push 0
call fcn.0049a277
add esp, 0x10
mov edi, dword [ebp - 0x90]
mov edx, ebx
push 0
push 0
push 6
pop ecx
push 4
pop eax
cmp edi, 2
cmove eax, ecx
mov ecx, esi
push eax
push dword [ebp - 0xb0]
push dword [ebp - 0x9c]
push dword [ebp - 0xbc]
push dword [ebp - 0x34]
call fcn.0049d6c0
add esp, 0x1c
cmp dword [ebp - 0x6c], 0
je 0x4aedce
movzx eax, byte [ebp - 0x70]
mov edx, ebx
push eax
push dword [ebp - 0x4c]
mov ecx, esi
push dword [ebp - 0x58]
push dword [ebp - 0x3c]
call fcn.0049ae61
add esp, 0x10
jmp 0x4aedce
mov edi, dword [ebp - 0x90]
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x4aedeb
mov ecx, dword [ebp - 0x30]
push 0
push 1
push eax
push 0x56
pop edx
call fcn.004746eb
add esp, 0xc
push dword [ebp - 0x50]
mov edx, dword [ebp - 0x7c]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp - 0x58]
push ebx
push 2
push dword [ebp - 0x3c]
push 0x81
call fcn.004ad585
mov ebx, dword [ebp - 0x30]
add esp, 0x1c
cmp edi, 1
je 0x4aee48
mov edx, dword [ebp - 0x50]
mov ecx, ebx
call fcn.00474ac0
cmp edi, 2
jne 0x4aee30
mov ecx, dword [ebp - 0xc4]
call fcn.004bc4c8
jmp 0x4aee48
push 0
push dword [ebp - 0xf0]
mov ecx, ebx
push dword [ebp - 0x5c]
push 0x27
pop edx
call fcn.004746eb
add esp, 0xc
mov edx, dword [ebp - 0x54]
mov ecx, ebx
call fcn.00474ac0
cmp byte [esi + 0x12], 0
jne 0x4aee74
cmp dword [esi + 0x7c], 0
jne 0x4aee74
cmp dword [ebp - 0xb4], 0
jne 0x4aee74
cmp dword [esi + 0x74], 0
je 0x4aee74
mov ecx, esi
call fcn.0049b581
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x4aee8d
push 0x432314
mov edx, eax
mov ecx, ebx
call fcn.00496311
pop ecx
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x4ade6f
mov ecx, dword [ebp - 0xd4]
mov dword [eax + 0x100], ecx
jmp 0x4ade6f
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x74]
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xa0]
call fcn.00495018
test ebx, ebx
je 0x4aeed8
mov edx, ebx
mov ebx, dword [ebp - 0xa0]
mov ecx, ebx
call fcn.00486cac
jmp 0x4aeede
mov ebx, dword [ebp - 0xa0]
test edi, edi
je 0x4aeeeb
mov edx, edi
mov ecx, ebx
call fcn.0048602a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004caec8
leave
ret