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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov eax, dword [0x4010c0]
xor eax, esp
mov dword [esp + 0xf0], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x48], eax
push esi
push edi
mov esi, edx
mov dword [esp + 0x44], ebx
mov edi, dword [ebx]
xor eax, eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x4c], 1
mov dword [esp + 0x74], eax
mov dword [esp + 0x18], edi
call fcn.004a5717
mov dword [esp + 0x10], eax
test esi, esi
je 0x4ab485
xor eax, eax
cmp dword [ebx + 0x24], eax
jne 0x4ab485
push eax
push eax
push eax
push 0x15
pop edx
mov ecx, ebx
call fcn.0048fcdf
add esp, 0xc
test eax, eax
jne 0x4ab485
mov eax, dword [esp + 0x50]
cmp byte [eax], 6
ja 0x4a9a3c
cmp dword [esi + 0x30], 0
je 0x4a9a2e
push dword [esi + 0x30]
mov edx, fcn.00486cee
mov ecx, ebx
call fcn.004a2d3d
xor eax, eax
pop ecx
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
and eax, 0xfffffffe
or eax, 0x400000
mov dword [esi + 4], eax
xor eax, eax
mov edx, esi
push eax
mov ecx, ebx
call fcn.004a8feb
xor eax, eax
pop ecx
cmp dword [ebx + 0x24], eax
jne 0x4a9a93
mov edi, dword [esi + 4]
test edi, 0x800000
je 0x4a9abd
mov edx, dword [esi + 0x20]
lea eax, [edx + 8]
mov ecx, eax
mov dword [esp + 0x30], eax
call fcn.004a987f
test eax, eax
je 0x4a9ab4
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4a9a80
mov eax, dword [ecx + 0x10]
mov eax, dword [eax]
push eax
push 0x431f7c
push ebx
call fcn.0045c6d7
add esp, 0xc
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4a9aa4
mov edx, eax
mov ecx, edi
call fcn.00486cac
mov ecx, ebx
call fcn.0047497e
mov eax, dword [esp + 0x4c]
jmp 0x4ab488
and edi, 0xff7fffff
mov dword [esi + 4], edi
mov eax, dword [esp + 0x50]
cmp byte [eax], 9
jne 0x4a9acf
mov edx, esi
mov ecx, ebx
call fcn.004a4f9d
mov edx, esi
mov ecx, ebx
call fcn.004bd72b
test eax, eax
jne 0x4a9a8f
mov eax, dword [esi + 0x20]
lea edi, [esp + 0xb4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
shr eax, 3
and eax, 1
mov dword [esp + 0x64], eax
xor eax, eax
push 0xa
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0xb4], eax
xor eax, eax
mov edx, eax
mov dword [esp + 0xc], edx
cmp dword [esi + 0x34], eax
jne 0x4a9c86
mov edi, dword [esp + 0x1c]
cmp edx, dword [edi]
jge 0x4a9cc9
imul ecx, edx, 0x48
mov dword [esp + 0x30], ecx
mov eax, dword [ecx + edi + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + edi + 0x18]
mov dword [esp + 0x68], eax
mov al, byte [ecx + edi + 0x2c]
and al, 0x18
cmp al, 8
jne 0x4a9b85
mov edx, dword [ecx + edi + 0x34]
mov ecx, dword [esi + 0x24]
call fcn.0048ad55
test eax, eax
je 0x4a9b81
mov eax, dword [esp + 0x18]
test dword [eax + 0x50], 0x2000
jne 0x4a9b81
mov edx, dword [esp + 0x30]
and byte [edx + edi + 0x2c], 0xd7
movzx eax, byte [edi + 0x2c]
mov edx, dword [edx + edi + 0x34]
and eax, 0x40
mov ecx, dword [esi + 0x24]
push eax
call fcn.004a380d
pop ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4a9c76
mov eax, dword [ecx + 0x1c]
mov ebx, dword [esp + 0x68]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
movsx eax, word [ebx + 0x22]
mov ebx, dword [esp + 0x44]
cmp eax, dword [esp + 0x2c]
jne 0x4a9cab
test byte [ecx + 4], 8
jne 0x4a9c76
cmp dword [ecx + 0x30], 0
je 0x4a9c20
xor eax, eax
cmp dword [esi + 0x30], eax
jne 0x4a9bcc
cmp dword [edi], 1
jle 0x4a9c08
cmp dword [ecx + 0x3c], eax
jne 0x4a9c08
mov eax, 0x8000000
test dword [ecx + 4], eax
jne 0x4a9c08
test dword [esi + 4], eax
jne 0x4a9c08
mov eax, dword [esp + 0x18]
test dword [eax + 0x50], 0x40000
jne 0x4a9c08
push dword [ecx + 0x30]
mov edx, fcn.00486cee
mov ecx, ebx
call fcn.004a2d3d
mov eax, dword [esp + 0x18]
xor edi, edi
pop ecx
mov dword [eax + 0x30], edi
jmp 0x4a9c22
test edx, edx
jne 0x4a9c20
test dword [esi + 4], 0x40000
je 0x4a9c20
cmp dword [edi], 1
je 0x4a9c76
test byte [edi + 0x74], 0x22
jne 0x4a9c76
xor edi, edi
push dword [esp + 0x64]
mov eax, dword [esp + 0x10]
mov edx, esi
push eax
mov ecx, ebx
call fcn.004a71d4
pop ecx
pop ecx
test eax, eax
je 0x4a9c4a
cmp dword [ebx + 0x24], edi
jne 0x4a9a8f
or eax, 0xffffffff
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x1c], edi
cmp byte [eax + 0x57], 0
jne 0x4ab47e
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0xc]
cmp byte [eax], 8
jbe 0x4a9c76
mov eax, dword [esi + 0x30]
mov dword [esp + 0xb4], eax
inc edx
xor eax, eax
mov dword [esp + 0xc], edx
cmp dword [esi + 0x34], eax
je 0x4a9b1d
push dword [esp + 0x50]
mov edx, esi
mov ecx, ebx
call fcn.004a5d23
mov edi, eax
xor eax, eax
pop ecx
cmp dword [esi + 0x38], eax
jne 0x4a9ca4
mov ecx, ebx
call fcn.0047497e
mov eax, edi
jmp 0x4ab488
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
push dword [ecx]
push eax
push 0x431fb4
push ebx
call fcn.0045c6d7
add esp, 0x14
jmp 0x4a9a8f
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4a9ceb
cmp byte [eax], 0x2c
mov eax, dword [esp + 0x18]
jne 0x4a9cef
test dword [eax + 0x50], 0x8000
jne 0x4a9cef
mov edx, esi
mov ecx, ebx
call fcn.004a7b3b
mov eax, dword [esp + 0x18]
test dword [eax + 0x50], 0x201
jne 0x4a9d1e
mov edx, esi
mov dword [esp + 0x1c], edi
mov ecx, ebx
call fcn.004a967c
test eax, eax
je 0x4a9d1e
mov edi, dword [esp + 0x18]
cmp byte [edi + 0x57], 0
jne 0x4a9a93
mov edi, dword [esi + 0x20]
mov dword [esp + 0x1c], edi
xor edx, edx
mov ecx, edx
mov dword [esp + 0x38], ecx
cmp dword [edi], edx
jle 0x4aa152
add edi, 0xc
mov dword [esp + 0xc], edi
mov eax, dword [edi + 0x34]
or eax, dword [edi + 0x38]
jne 0x4a9d60
cmp dword [edi + 4], eax
je 0x4a9d60
push dword [edi]
mov eax, 0x420b82
mov ecx, ebx
push eax
push dword [edi + 4]
push 0x14
pop edx
call fcn.0048fcdf
mov ecx, dword [esp + 0x44]
add esp, 0xc
xor edx, edx
mov eax, dword [edi + 0x10]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4aa137
mov dword [esp + 0x14], edx
mov ecx, esi
lea edx, [esp + 0x14]
call fcn.00485957
mov eax, dword [esp + 0x14]
add dword [ebx + 0xe0], eax
mov eax, dword [esp + 0x18]
test dword [eax + 0x50], 0x1000
jne 0x4a9dca
mov ecx, pe_nt_image_headers32
test dword [edi + 0x24], ecx
je 0x4a9dad
mov ecx, dword [edi + 0x40]
cmp byte [ecx + 0x12], 0
je 0x4a9dca
cmp dword [ecx], 2
jge 0x4a9dca
push dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov ecx, ebx
push dword [esp + 0x20]
push dword [esi + 0x24]
call fcn.004a7c05
mov eax, dword [esp + 0x24]
add esp, 0xc
test dword [eax + 0x50], 0x4000000
jne 0x4a9ddb
lea ecx, [edi - 4]
call fcn.004a7e57
mov eax, dword [ebx + 0x100]
mov ecx, ebx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
mov dword [ebx + 0x100], eax
push dword [esi + 4]
push dword [esp + 0x3c]
call fcn.004a98f8
pop ecx
pop ecx
test eax, eax
je 0x4a9ee0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, dword [ecx + 0x6c]
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [edx + 0x18], eax
xor edx, edx
lea esi, [edi + 1]
push esi
push edx
push eax
push 0xb
pop edx
call fcn.004746eb
mov eax, dword [esp + 0x18]
add esp, 0xc
mov byte [esp + 0x98], 0xd
mov dword [eax + 0x14], esi
mov esi, eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x9c], eax
xor eax, eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
lea eax, [esi - 4]
push eax
push 0x431fdc
push 1
push ebx
call fcn.00474928
mov edx, dword [esp + 0x34]
lea eax, [esp + 0xa8]
push eax
mov ecx, ebx
call fcn.004a9992
mov ecx, dword [esi + 0xc]
add esp, 0x14
mov eax, dword [esp + 0x24]
mov ax, word [eax + 2]
mov word [ecx + 0x26], ax
mov eax, dword [esp + 0xa4]
or dword [esi + 0x24], 0x20
mov edx, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.00474a32
mov edx, edi
mov ecx, esi
call fcn.00474f68
mov ecx, dword [esi + 0x6c]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0xc]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [ebx + 0x13], cl
mov dword [ebx + 0x1c], ecx
jmp 0x4aa102
mov eax, pe_nt_image_headers32
test dword [edi + 0x24], eax
je 0x4a9f4e
mov eax, dword [edi + 0x40]
mov dword [esp + 0x14], eax
cmp dword [eax + 4], 0
jle 0x4a9f4e
mov edi, dword [esp + 0x10]
xor ecx, ecx
push ecx
push dword [eax + 4]
mov ecx, edi
push dword [eax + 8]
push 0xa
pop edx
call fcn.004746eb
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
cmp ecx, edx
je 0x4a9f39
xor eax, eax
push eax
push edx
push ecx
push 0x73
pop edx
mov ecx, edi
call fcn.004746eb
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ax, word [eax + 0x10]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0xc]
mov word [ecx + 2], ax
jmp 0x4aa100
push dword [esp + 0x38]
xor ecx, ecx
lea eax, [edi - 4]
push ecx
mov ecx, dword [esp + 0x24]
mov edx, eax
mov dword [esp + 0x38], eax
call fcn.004a9599
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x4a9fbc
cmp dword [eax + 0x18], 0
mov edi, dword [esp + 0x10]
je 0x4a9f95
xor ecx, ecx
push ecx
push dword [eax + 0x18]
mov ecx, edi
push dword [eax + 0x1c]
push 0xa
pop edx
call fcn.004746eb
mov eax, dword [esp + 0x20]
add esp, 0xc
xor ecx, ecx
push ecx
push dword [eax + 0x2c]
mov eax, dword [esp + 0x14]
mov ecx, edi
push dword [eax + 0x28]
push 0x73
pop edx
call fcn.004746eb
mov eax, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [eax + 0x14]
mov ax, word [eax + 2]
jmp 0x4a9f3d
xor ecx, ecx
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
push ecx
push ecx
push ecx
mov dword [edi + 0x18], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, edi
push 9
pop edx
call fcn.004746eb
mov dword [esp + 0x48], eax
add esp, 0xc
lea ecx, [eax + 1]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
or dword [eax + 0x24], 0x10
test byte [eax + 0x24], 8
mov dword [eax + 0x14], ecx
jne 0x4aa015
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push 0xf
pop edx
call fcn.004746eb
mov dword [esp + 0x20], eax
add esp, 0xc
mov eax, dword [esp + 0xc]
push dword [esp + 0x30]
mov ecx, dword [eax + 0x28]
xor eax, eax
push 0x431fec
push 1
push ebx
mov byte [esp + 0xa8], 0xc
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
call fcn.00474928
mov edx, dword [esp + 0x34]
lea eax, [esp + 0xa8]
push eax
mov ecx, ebx
call fcn.004a9992
mov eax, dword [esp + 0x20]
add esp, 0x14
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x24]
mov ax, word [eax + 2]
mov word [ecx + 0x26], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4aa096
mov edx, eax
mov ecx, edi
call fcn.00474f68
mov ecx, dword [edi + 0x6c]
mov dword [eax + 8], ecx
xor eax, eax
mov ecx, edi
push eax
mov eax, dword [esp + 0x10]
push dword [esp + 0x2c]
push dword [eax + 0x18]
push 0x43
pop edx
call fcn.004746eb
mov edx, dword [esp + 0x48]
add esp, 0xc
mov ecx, edi
call fcn.00474f68
mov ecx, dword [edi + 0x6c]
mov edx, pe_nt_image_headers32
mov edi, dword [esp + 0xc]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [ebx + 0x13], cl
mov dword [ebx + 0x1c], ecx
mov eax, dword [edi + 0x24]
and eax, 0x108
cmp eax, edx
jne 0x4aa102
mov ecx, dword [edi + 0x40]
mov eax, dword [edi + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x18]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x28]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x24]
mov ax, word [eax + 2]
mov word [ecx + 0x10], ax
xor ecx, ecx
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x57], 0
jne 0x4ab47e
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.00485957
mov eax, dword [esp + 0x14]
sub dword [ebx + 0xe0], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x100], eax
mov eax, dword [esp + 0x1c]
inc ecx
add edi, 0x48
mov dword [esp + 0x38], ecx
push 0
mov dword [esp + 0x10], edi
pop edx
cmp ecx, dword [eax]
jl 0x4a9d35
mov eax, dword [esi + 0x24]
xor ecx, ecx
mov edi, dword [esi + 0x1c]
inc ecx
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x70], eax
mov al, byte [esi + 4]
and al, cl
mov dword [esp + 0x38], edi
mov byte [esp + 0x8c], al
mov eax, dword [esi + 4]
and al, 9
cmp al, cl
jne 0x4aa1c6
mov ecx, dword [esp + 0xb4]
mov edx, edi
push 0xffffffffffffffff
call fcn.0048a9b8
pop ecx
xor ecx, ecx
test eax, eax
jne 0x4aa1c8
cmp dword [esi + 0x44], ecx
jne 0x4aa1c8
and dword [esi + 4], 0xfffffffe
mov edx, edi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004864f4
or dword [esi + 4], 8
pop ecx
mov dword [esp + 0xc], eax
mov dword [esi + 0x28], eax
mov byte [esp + 0x8c], 2
xor ecx, ecx
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x4aa21f
push dword [edi]
mov edx, eax
push ecx
mov ecx, ebx
call fcn.004a4976
mov edx, dword [ebx + 0x28]
push 0xfffffffffffffff8
push eax
xor eax, eax
mov dword [esp + 0xcc], edx
push eax
mov eax, dword [esp + 0xc8]
lea ecx, [edx + 1]
mov dword [ebx + 0x28], ecx
mov ecx, dword [eax]
mov eax, dword [edi]
inc ecx
mov edi, dword [esp + 0x24]
add eax, ecx
push eax
push edx
push 0x76
pop edx
mov ecx, edi
call fcn.00474815
add esp, 0x1c
mov dword [esp + 0xc8], eax
jmp 0x4aa22b
or dword [esp + 0xc8], 0xffffffff
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
cmp byte [ecx], 0xc
jne 0x4aa2fc
xor eax, eax
push eax
mov eax, dword [esp + 0x3c]
push dword [eax]
push dword [ecx + 4]
mov ecx, edi
push 0x76
pop edx
call fcn.004746eb
add esp, 0xc
test dword [esi + 4], 0x800
je 0x4aa2fc
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
lea edx, [eax - 1]
mov dword [esp + 0x20], edx
test edx, edx
jle 0x4aa2d8
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
imul ecx, edx, 0x14
mov dword [esp + 0x40], ecx
test byte [ecx + ebx + 0x14], 0x40
jne 0x4aa2cc
mov eax, dword [ecx + ebx + 8]
test eax, eax
je 0x4aa29e
mov edx, eax
mov ecx, edi
call fcn.0048602a
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov eax, dword [ecx + ebx + 0xc]
test eax, eax
je 0x4aa2b7
mov edx, eax
mov ecx, edi
call fcn.004594d9
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov eax, dword [ebx]
sub ecx, 0x14
dec eax
mov dword [esp + 0x40], ecx
dec edx
mov dword [ebx], eax
mov dword [esp + 0x20], edx
test edx, edx
jg 0x4aa27e
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
xor edx, edx
test eax, eax
jle 0x4aa2fc
mov eax, dword [esp + 0x38]
add ecx, 8
test byte [ecx + 0xc], 0x40
jne 0x4aa2f4
mov eax, dword [ecx]
mov byte [eax], 0x79
mov eax, dword [esp + 0x38]
inc edx
add ecx, 0x14
cmp edx, dword [eax]
jl 0x4aa2e5
dec dword [ebx + 0x38]
mov ecx, 0x4000
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x88], eax
test dword [esi + 4], ecx
jne 0x4aa31c
mov ecx, 0x140
mov word [esi + 2], cx
xor ecx, ecx
cmp dword [esi + 0x3c], ecx
je 0x4aa32e
push eax
mov edx, esi
mov ecx, ebx
call fcn.004a5737
pop ecx
xor eax, eax
cmp dword [esi + 8], eax
jne 0x4aa354
mov edx, dword [esp + 0xc8]
test edx, edx
js 0x4aa354
mov ecx, edi
call fcn.00474f68
mov byte [eax], 0x77
or byte [esp + 0xd4], 1
xor eax, eax
test byte [esi + 4], 1
je 0x4aa3c7
mov eax, dword [ebx + 0x28]
mov ecx, ebx
mov dword [esp + 0x90], eax
inc eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov edx, dword [esi + 0x1c]
push eax
push eax
call fcn.004a4976
mov ecx, dword [esp + 0x18]
mov edi, eax
xor eax, eax
push eax
push eax
push dword [esp + 0xa0]
push 0x76
pop edx
call fcn.004746eb
add esp, 0x14
mov esi, eax
mov edx, esi
push 0xfffffffffffffff8
push edi
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.00474eab
pop ecx
pop ecx
push 8
pop edx
mov ecx, edi
mov dword [esp + 0x94], esi
call fcn.00474c95
mov esi, dword [esp + 0x54]
xor eax, eax
mov byte [esp + 0x8d], 3
jmp 0x4aa3ce
mov byte [esp + 0x8d], al
cmp dword [esp + 0x64], 0
mov ecx, dword [esp + 0xc]
jne 0x4aa5f9
test ecx, ecx
jne 0x4aa5f9
mov cx, word [esi + 4]
mov eax, 0x4000
and cx, ax
mov edx, pe_nt_image_headers32
xor eax, eax
cmp byte [esp + 0x8c], al
cmovne eax, edx
or cx, ax
movzx eax, cx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4aa420
mov edx, esi
mov ecx, ebx
call fcn.004be018
movsx eax, word [esi + 2]
mov ecx, ebx
mov edx, dword [esp + 0x1c]
push eax
push dword [esp + 0x34]
push esi
push dword [esi + 0x1c]
push dword [esp + 0xc4]
push dword [esp + 0x6c]
call fcn.004bba53
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x48], ecx
test ecx, ecx
je 0x4a9a8f
movzx eax, word [ecx + 0x34]
cmp ax, word [esi + 2]
jge 0x4aa462
mov word [esi + 2], ax
cmp byte [esp + 0x8c], 0
je 0x4aa48a
mov cl, byte [ecx + 0x2f]
movzx edx, byte [esp + 0x8d]
test cl, cl
movzx eax, cl
mov ecx, dword [esp + 0x48]
cmovne edx, eax
mov byte [esp + 0x8d], dl
mov edx, dword [esp + 0xb4]
test edx, edx
je 0x4aa4e9
mov al, byte [ecx + 0x2d]
test al, al
jns 0x4aa4a0
xor eax, eax
jmp 0x4aa4a3
movsx eax, al
mov dword [esp + 0xb8], eax
test byte [ecx + 0x30], 4
je 0x4aa4c1
movzx eax, byte [ecx + 0x2c]
imul eax, eax, 0x60
cmp dword [eax + ecx + 0x2d0], 0
je 0x4aa4c6
mov eax, dword [ecx + 0x1c]
jmp 0x4aa4cd
mov eax, dword [eax + ecx + 0x2a8]
mov dword [esp + 0xd0], eax
xor ecx, ecx
mov eax, dword [esp + 0xb8]
cmp eax, dword [edx]
cmove edx, ecx
mov dword [esp + 0xb4], edx
cmp dword [esp + 0xc8], 0
jl 0x4aa505
test edx, edx
jne 0x4aa505
mov edx, dword [esp + 0xc8]
mov ecx, edi
call fcn.00474e0d
cmp dword [esp + 0x28], 0
je 0x4aa5bf
mov esi, dword [ebx + 0x38]
mov ecx, dword [esp + 0x44]
dec esi
mov edx, dword [esp + 0x54]
push esi
inc dword [ecx + 0x2c]
lea ebx, [esi - 1]
mov edi, dword [ecx + 0x2c]
lea eax, [ebx - 1]
push edi
push dword [esp + 0x50]
mov dword [ecx + 0x38], eax
call fcn.004bf547
add esp, 0xc
lea eax, [ebx - 1]
xor ecx, ecx
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push 9
pop edx
call fcn.004746eb
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, esi
call fcn.00474ac0
mov edx, dword [esp + 0x54]
lea esi, [ebx - 1]
mov ecx, dword [esp + 0x44]
xor eax, eax
push esi
push ebx
push dword [esp + 0x58]
mov dword [esp + 0xdc], eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0xc4]
push eax
push 0xffffffffffffffff
call fcn.004a41e1
mov ecx, dword [esp + 0x28]
mov edx, ebx
call fcn.00474ac0
xor eax, eax
push eax
push eax
push edi
mov edi, dword [esp + 0x34]
mov ecx, edi
push 0x43
pop edx
call fcn.004746eb
add esp, 0x24
mov edx, esi
mov ecx, edi
call fcn.00474ac0
mov ebx, dword [esp + 0x44]
jmp 0x4ab406
mov eax, dword [esp + 0x48]
mov edx, esi
mov ecx, ebx
push dword [eax + 0x20]
push dword [eax + 0x1c]
lea eax, [esp + 0x94]
push dword [esp + 0x58]
push eax
lea eax, [esp + 0xc4]
push eax
push 0xffffffffffffffff
call fcn.004a41e1
mov ecx, dword [esp + 0x60]
add esp, 0x18
call fcn.004bc4c8
jmp 0x4ab406
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x78], eax
test ecx, ecx
je 0x4aa69a
mov edx, dword [esi + 0x1c]
mov eax, dword [edx]
test eax, eax
jle 0x4aa626
add edx, 0x1a
xor edi, edi
dec eax
mov word [edx], di
lea edx, [edx + 0x14]
test eax, eax
jg 0x4aa619
mov eax, dword [ecx]
test eax, eax
jle 0x4aa63c
lea edx, [ecx + 0x1a]
xor edi, edi
dec eax
mov word [edx], di
lea edx, [edx + 0x14]
test eax, eax
jg 0x4aa62f
push 0x42
pop eax
cmp word [esi + 2], ax
jle 0x4aa649
mov word [esi + 2], ax
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x4aa6a0
mov edx, dword [ecx]
cmp edx, dword [eax]
jne 0x4aa6a0
xor eax, eax
mov edi, eax
test edx, edx
jle 0x4aa67d
mov edx, eax
mov eax, dword [esp + 0xb4]
lea edx, [edx + 0x14]
mov al, byte [edx + eax - 4]
and al, 1
inc edi
mov byte [ecx + edx - 4], al
cmp edi, dword [ecx]
jl 0x4aa664
mov edx, dword [esp + 0xb4]
push 0xffffffffffffffff
call fcn.0048a9b8
pop ecx
test eax, eax
jne 0x4aa6a0
mov dword [esp + 0x78], 1
jmp 0x4aa6a0
xor eax, eax
mov word [esi + 2], ax
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x18]
dec eax
mov dword [esp + 0x48], eax
mov dword [ebx + 0x38], eax
xor eax, eax
push eax
push 0x2c
call fcn.0045975d
mov edi, eax
mov dword [esp + 0x48], edi
pop ecx
pop ecx
test edi, edi
je 0x4aa6d3
push edi
mov edx, 0x4a964b
mov ecx, ebx
call fcn.004a2d3d
pop ecx
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x57], 0
jne 0x4ab47e
mov eax, dword [esi + 0x10]
xorps xmm0, xmm0
mov dword [edi + 0x28], eax
xor ecx, ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xc]
movlpd qword [esp + 0xe8], xmm0
movlpd qword [esp + 0xf0], xmm0
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe4], edi
test eax, eax
je 0x4aa728
mov ecx, dword [eax]
mov edx, dword [esp + 0x38]
mov word [edi + 2], cx
lea ecx, [esp + 0xdc]
mov dword [edi + 0x10], eax
call fcn.0048b4f7
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0xdc]
call fcn.0048b4f7
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x4aa7bb
cmp dword [esp + 0xc], 0
je 0x4aa7ad
mov edx, dword [esi + 0x2c]
xorps xmm0, xmm0
movlpd qword [esp + 0xa0], xmm0
movlpd qword [esp + 0xa8], xmm0
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], 0x4a94f1
mov dword [esp + 0xb0], esi
test edx, edx
je 0x4aa7a6
lea ecx, [esp + 0x98]
call fcn.00482b8c
mov ecx, dword [esp + 0x70]
mov eax, dword [esi + 0x24]
mov dword [esp + 0x58], eax
mov edx, ecx
lea ecx, [esp + 0xdc]
call fcn.0048b4af
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
xor eax, eax
cmp dword [esi + 0x28], eax
jne 0x4aa7e7
cmp dword [esi + 0x2c], eax
jne 0x4aa7e7
cmp dword [edi + 0x24], 1
jne 0x4aa7e7
mov edx, dword [edi + 0x20]
lea eax, [esp + 0x74]
mov ecx, dword [esp + 0x18]
push eax
mov edx, dword [edx]
call fcn.004a7f96
pop ecx
lea edx, [esp + 0xdc]
mov byte [esp + 0x37], al
mov ecx, edi
call fcn.004a9060
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x57], 0
jne 0x4ab47e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4aafcd
xor edx, edx
cmp dword [edi + 0x24], 1
mov dword [esp + 0x6c], edx
mov dword [esp + 0x14], edx
jne 0x4aa89a
mov ecx, dword [edi + 0x20]
cmp dword [ecx + 8], edx
jl 0x4aa89a
mov ecx, dword [ecx]
test ecx, ecx
je 0x4aa89a
test dword [ecx + 4], 0x1000
jne 0x4aa89a
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x4aa898
mov edx, dword [edx + 8]
test edx, edx
je 0x4aa863
mov ecx, dword [esp + 0x18]
xor eax, eax
push eax
push eax
call fcn.004861de
pop ecx
pop ecx
mov dword [esp + 0x14], eax
xor ecx, ecx
mov eax, dword [esp + 0xc]
jmp 0x4aa869
xor ecx, ecx
mov dword [esp + 0x14], ecx
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, eax
call fcn.004864f4
pop ecx
push dword [esp + 0x14]
mov edx, eax
mov ecx, ebx
call fcn.00486a9c
mov dword [esp + 0x70], eax
neg eax
pop ecx
sbb ecx, ecx
and ecx, 0x500
mov eax, ecx
mov dword [esp + 0x14], eax
xor edx, edx
mov eax, dword [ebx + 0x28]
mov ecx, ebx
mov dword [edi + 4], eax
inc dword [ebx + 0x28]
push dword [edi + 0x18]
push edx
mov edx, dword [esp + 0x14]
call fcn.004a4976
movzx ecx, word [edi + 2]
push 0xfffffffffffffff8
push eax
mov dword [esp + 0x94], eax
xor eax, eax
push eax
push ecx
push dword [edi + 4]
mov ecx, dword [esp + 0x2c]
push 0x77
pop edx
call fcn.00474815
mov edx, dword [esp + 0x28]
add esp, 0x1c
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x2c]
inc eax
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x24], eax
lea ecx, [eax + 2]
mov eax, dword [ebx + 0x38]
dec eax
mov dword [ebx + 0x2c], ecx
mov dword [esp + 0x68], eax
dec eax
mov dword [ebx + 0x38], eax
mov dword [esp + 0x5c], ecx
add ecx, dword [edx]
mov dword [esp + 0x2c], eax
mov dword [ebx + 0x2c], ecx
lea eax, [ecx + 1]
mov dword [esp + 0x64], eax
mov eax, dword [edx]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x2c], eax
xor eax, eax
push eax
push dword [esp + 0x28]
push eax
push 0x47
pop edx
call fcn.004746eb
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x5c]
inc ecx
mov eax, dword [eax]
dec eax
add eax, ecx
push eax
push ecx
mov ecx, dword [esp + 0x18]
xor eax, eax
push eax
push 0x4b
pop edx
call fcn.004746eb
mov ecx, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
push eax
push dword [esp + 0x30]
push dword [esp + 0x64]
push 0xa
pop edx
call fcn.004746eb
add esp, 0xc
xor eax, eax
push eax
mov eax, dword [esp + 0x7c]
neg eax
sbb eax, eax
mov edx, 0x80
push 0x40
and eax, 0x200
cmp byte [esp + 0x94], 2
pop ecx
cmove ecx, edx
mov edx, dword [esp + 0x20]
or ax, cx
mov ecx, ebx
or ax, word [esp + 0x18]
movzx eax, ax
push eax
push esi
push dword [esp + 0x78]
push dword [esp + 0x1c]
push dword [esp + 0x6c]
call fcn.004bba53
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x58], ecx
test ecx, ecx
jne 0x4aa9e0
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x18]
test eax, eax
je 0x4a9a93
mov edx, eax
mov ecx, edi
call fcn.00486cac
jmp 0x4a9a93
xor eax, eax
cmp dword [ebx + 0x48], eax
je 0x4aaa35
mov edx, dword [edi + 0x1c]
mov dword [edi + 0x18], edx
cmp word [edi + 2], ax
jbe 0x4aaa23
mov eax, dword [esi + 0x28]
mov ecx, dword [eax]
dec ecx
test edx, edx
jle 0x4aaa1c
mov edx, dword [edi + 0x14]
mov esi, dword [edi + 0x1c]
add edx, 0xe
movsx eax, word [edx]
lea edx, [edx + 0x10]
cmp eax, ecx
cmovle eax, ecx
mov ecx, eax
sub esi, 1
jne 0x4aaa06
mov esi, dword [esp + 0x54]
lea eax, [ecx + 1]
mov word [edi + 2], ax
lea edx, [esp + 0xdc]
mov ecx, edi
call fcn.004a9060
mov ecx, dword [esp + 0x58]
mov eax, dword [ebx + 0x2c]
inc eax
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x2c]
add eax, dword [edi + 0x24]
add eax, dword [edi + 0x18]
mov dword [ebx + 0x2c], eax
movzx eax, byte [ecx + 0x2f]
mov dword [esp + 0x30], eax
mov al, byte [ecx + 0x2d]
xor ecx, ecx
test al, al
movsx edx, al
mov eax, dword [esp + 0xc]
cmovns ecx, edx
cmp ecx, dword [eax]
jne 0x4aaa74
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x4aac14
cmp byte [esp + 0x8c], 0
je 0x4aaa89
test byte [esi + 4], 1
mov eax, 0x431ffc
je 0x4aaa8e
mov eax, 0x432008
push eax
push 0x431b90
xor eax, eax
push eax
push ebx
call fcn.00474928
mov esi, dword [esp + 0x1c]
add esp, 0x10
mov dword [esp + 0x1c], 1
mov eax, dword [esi]
mov edx, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x4aaafe
mov esi, dword [edi + 0x14]
mov ebx, edx
add esi, 0xe
mov edi, eax
movsx ecx, word [esi]
lea eax, [edx + 1]
cmp ecx, ebx
lea esi, [esi + 0x10]
cmovl eax, edx
mov edx, eax
lea eax, [ebx + 1]
cmovl eax, ebx
mov ebx, eax
sub edi, 1
jne 0x4aaad1
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x4c], edx
mov ecx, ebx
call fcn.0048b563
xor ecx, ecx
mov dword [esp + 0x44], eax
push ecx
push ecx
push eax
mov edx, esi
mov ecx, ebx
call fcn.00489d7c
xor eax, eax
mov byte [edi], 1
add esp, 0xc
mov ecx, eax
mov dword [esp + 0x60], ecx
cmp dword [edi + 0x18], eax
jle 0x4aab6d
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x3c], eax
mov edx, dword [edi + 0x14]
add edx, eax
movsx eax, word [edx + 0xe]
cmp eax, esi
jl 0x4aab56
mov eax, dword [esp + 0x44]
mov ecx, ebx
mov edx, dword [edx + 4]
add eax, esi
push eax
call fcn.00489c9f
pop ecx
mov ecx, dword [esp + 0x60]
inc esi
mov eax, dword [esp + 0x3c]
inc ecx
add eax, 0x10
mov dword [esp + 0x60], ecx
mov dword [esp + 0x3c], eax
cmp ecx, dword [edi + 0x18]
jl 0x4aab32
xor eax, eax
mov ecx, ebx
mov byte [edi], al
call fcn.0048b52b
mov ecx, dword [esp + 0x10]
mov esi, eax
push esi
push dword [esp + 0x50]
push dword [esp + 0x4c]
push 0x61
pop edx
call fcn.004746eb
mov ecx, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
mov edx, 0x8b
push eax
push esi
push dword [edi + 4]
call fcn.004746eb
add esp, 0xc
mov edx, esi
mov ecx, ebx
call fcn.0048b54a
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
push esi
call fcn.0048b599
mov ecx, dword [esp + 0x5c]
add esp, 4
call fcn.004bc4c8
mov edx, dword [ebx + 0x28]
mov ecx, ebx
mov dword [edi + 8], edx
inc dword [ebx + 0x28]
mov dword [esp + 0x60], edx
call fcn.0048b52b
push esi
mov esi, dword [esp + 0x14]
mov ecx, esi
push eax
push edx
push 0x79
pop edx
mov dword [esp + 0x34], eax
call fcn.004746eb
add esp, 0xc
xor eax, eax
mov ecx, esi
push eax
push dword [esp + 0x4c]
push dword [edi + 4]
push 0x22
pop edx
call fcn.004746eb
add esp, 0xc
mov byte [edi + 1], 1
xor eax, eax
cmp dword [ebx + 0x48], eax
je 0x4aac78
push 7
xor eax, eax
lea edi, [esp + 0x9c]
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x40]
mov edx, eax
mov dword [esp + 0x9c], 0x4a90c1
mov dword [esp + 0x3c], edx
cmp dword [edi + 0x24], eax
jle 0x4aac78
mov ecx, eax
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x20]
mov eax, dword [ecx + eax]
test eax, eax
je 0x4aac67
mov edx, eax
lea ecx, [esp + 0x98]
call fcn.00482b8c
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
inc edx
add ecx, 0x10
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], ecx
cmp edx, dword [edi + 0x24]
jl 0x4aac47
cmp dword [esp + 0x78], 0
je 0x4aacb2
mov eax, dword [esp + 0x18]
test byte [eax + 0x50], 4
mov eax, dword [esp + 0x1c]
jne 0x4aacb6
test eax, eax
jne 0x4aac9b
mov ecx, dword [esp + 0x58]
test byte [ecx + 0x30], 8
je 0x4aacb6
mov edx, dword [esp + 0xc8]
xor eax, eax
mov ecx, esi
mov dword [esp + 0xb4], eax
call fcn.00474e0d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x7c], ecx
test eax, eax
je 0x4aacdb
push dword [esp + 0x60]
mov edx, 0x85
mov ecx, esi
push dword [esp + 0x2c]
push dword [edi + 4]
call fcn.004746eb
add esp, 0xc
mov eax, dword [esp + 0xc]
xor edx, edx
mov ecx, edx
mov dword [esp + 0x28], edx
cmp dword [eax], edx
jle 0x4aad3d
lea edx, [eax + 8]
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x64]
add eax, ecx
cmp dword [esp + 0x1c], 0
push eax
je 0x4aad14
push ecx
push dword [esp + 0x68]
mov ecx, esi
push 0x5e
pop edx
call fcn.004746eb
add esp, 0xc
jmp 0x4aad21
mov byte [edi], 1
mov ecx, ebx
mov edx, dword [edx]
call fcn.00489c9f
pop ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
inc ecx
mov edx, dword [esp + 0x3c]
add edx, 0x14
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], edx
cmp ecx, dword [eax]
jl 0x4aacf2
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x4aad4a
inc dword [ecx]
push 0xfffffffffffffff8
push ecx
push dword [eax]
mov eax, dword [esp + 0x68]
mov ecx, esi
push dword [esp + 0x70]
inc eax
push eax
push 0x5a
pop edx
call fcn.00474815
mov esi, dword [esi + 0x6c]
add esp, 0x14
xor ecx, ecx
lea eax, [esi + 1]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push eax
push 0xe
pop edx
call fcn.004746eb
mov eax, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [esp + 0x64]
mov ecx, ebx
push dword [eax]
mov eax, dword [esp + 0x60]
inc eax
push eax
call fcn.004887c6
mov ecx, dword [esp + 0x18]
xor eax, eax
push eax
push dword [esp + 0x74]
mov eax, dword [esp + 0x34]
inc eax
push eax
push 0xa
pop edx
call fcn.004746eb
mov ecx, dword [esp + 0x24]
add esp, 0x14
xor eax, eax
push eax
push dword [esp + 0x4c]
push dword [esp + 0x2c]
push 0x3b
pop edx
call fcn.004746eb
mov ecx, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
push eax
push dword [esp + 0x30]
push dword [esp + 0x64]
push 0xa
pop edx
call fcn.004746eb
add esp, 0xc
mov edx, esi
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.00474f68
mov ecx, dword [esi + 0x6c]
push dword [esp + 0x30]
mov edx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, ebx
push edi
call fcn.004a9254
xor eax, eax
mov ecx, esi
push eax
push dword [esp + 0x2c]
push 1
push 0x47
pop edx
call fcn.004746eb
add esp, 0x14
cmp dword [esp + 0x1c], 0
je 0x4aae43
xor eax, eax
mov ecx, esi
push eax
push dword [esp + 0x80]
push dword [edi + 4]
push 0x25
pop edx
call fcn.004746eb
add esp, 0xc
jmp 0x4aae5a
mov ecx, dword [esp + 0x58]
call fcn.004bc4c8
mov edx, dword [esp + 0x80]
mov ecx, esi
call fcn.00474e0d
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4aae6d
mov ecx, dword [esp + 0x18]
mov edx, eax
call fcn.00486cac
xor eax, eax
mov ecx, esi
push eax
push dword [esp + 0x6c]
mov eax, dword [esp + 0x2c]
inc eax
push eax
push 0xa
pop edx
call fcn.004746eb
mov edx, dword [esp + 0x54]
add esp, 0xc
mov ecx, esi
call fcn.00474744
mov edi, dword [esi + 0x6c]
xor eax, eax
push eax
push dword [esp + 0x28]
mov ecx, esi
push 1
push 0x47
pop edx
call fcn.004746eb
add esp, 0xc
xor eax, eax
mov ecx, esi
push eax
push eax
mov eax, dword [esp + 0x2c]
inc eax
push eax
push 0x43
pop edx
call fcn.004746eb
mov edx, dword [esp + 0x74]
add esp, 0xc
mov ecx, esi
call fcn.00474ac0
mov esi, dword [esi + 0x6c]
xor eax, eax
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esi + 2]
push eax
push dword [esp + 0x28]
push 0x3b
pop edx
call fcn.004746eb
mov ecx, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x2c]
inc eax
push eax
push 0x43
pop edx
call fcn.004746eb
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov ecx, ebx
call fcn.004a91f4
push 0x10
inc esi
push esi
push dword [esp + 0x78]
push ebx
call fcn.0048a31b
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x9c]
push edi
push esi
push dword [esp + 0x68]
mov ecx, ebx
push eax
lea eax, [esp + 0xd4]
push eax
push 0xffffffffffffffff
call fcn.004a41e1
xor eax, eax
mov edi, dword [esp + 0x38]
mov ecx, edi
push eax
push eax
mov eax, dword [esp + 0x54]
inc eax
push eax
push 0x43
pop edx
call fcn.004746eb
mov edx, dword [esp + 0x60]
add esp, 0x34
mov ecx, edi
call fcn.00474ac0
mov esi, dword [esp + 0x40]
mov ecx, ebx
mov edx, esi
call fcn.004a910e
xor eax, eax
mov ecx, edi
push eax
push dword [esp + 0x24]
push eax
push 0x47
pop edx
call fcn.004746eb
add esp, 0xc
xor eax, eax
mov ecx, edi
push eax
push eax
push dword [esp + 0x64]
push 0x43
pop edx
call fcn.004746eb
add esp, 0xc
cmp word [esp + 0x14], 0
je 0x4ab3fb
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4ab3fb
mov eax, dword [esi + 0x20]
mov edx, ecx
mov ecx, ebx
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.004a4183
pop ecx
pop ecx
jmp 0x4ab3fb
xor eax, eax
cmp dword [esi + 0x24], eax
jne 0x4ab213
mov edx, dword [esi + 0x1c]
cmp dword [edx], 1
jne 0x4ab213
mov ecx, dword [esi + 0x20]
cmp dword [ecx], 1
jne 0x4ab213
cmp dword [ecx + 0x1c], eax
jne 0x4ab213
cmp dword [edi + 0x24], 1
jne 0x4ab213
cmp dword [esi + 0x2c], eax
jne 0x4ab213
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x14], ecx
cmp byte [ecx + 0x2b], al
jne 0x4ab213
mov edx, dword [edx + 8]
cmp byte [edx], 0xa8
jne 0x4ab213
cmp dword [edx + 0x28], edi
jne 0x4ab213
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 4]
test dword [eax + 4], 0x100
je 0x4ab211
test dword [edx + 4], 0x1000004
jne 0x4ab211
test ecx, ecx
je 0x4ab211
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ebx]
call fcn.004a2c91
mov edx, eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
lea ecx, [eax + 1]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x28], ecx
xor ecx, ecx
cmp dword [ebx + 0x78], 0
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, ebx
cmovne ecx, dword [ebx + 0x78]
mov dword [esp + 0x28], eax
call fcn.0049552b
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, dword [esp + 0x30]
push dword [eax]
push ecx
push dword [eax + 0x14]
mov ecx, ebx
call fcn.0048fe11
mov edx, dword [esp + 0x20]
add esp, 0xc
test byte [edx + 0x1c], 0x80
je 0x4ab0cb
mov ecx, edx
call fcn.00490d43
mov dword [esp + 0x20], eax
jmp 0x4ab0cf
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x40], edx
test byte [ecx + 0x30], 1
jne 0x4ab11c
mov ecx, dword [edx + 8]
mov dword [esp + 0x40], edx
test ecx, ecx
je 0x4ab11c
mov dword [esp + 0x40], edx
test byte [ecx + 0x38], 4
jne 0x4ab10d
movzx esi, word [ecx + 0x30]
cmp si, word [edx + 0x28]
jge 0x4ab10d
cmp dword [ecx + 0x24], 0
jne 0x4ab10d
test eax, eax
je 0x4ab10b
cmp si, word [eax + 0x30]
jge 0x4ab10d
mov eax, ecx
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x4ab0eb
mov esi, dword [esp + 0x54]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4ab134
mov ecx, dword [eax + 0x2c]
mov edx, eax
mov dword [esp + 0x28], ecx
mov ecx, ebx
call fcn.004959e4
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x10]
push 1
push dword [esp + 0x34]
push dword [esp + 0x30]
push dword [esp + 0x38]
push 0x70
pop edx
call fcn.00474a00
mov eax, dword [esp + 0x4c]
add esp, 0x10
test eax, eax
je 0x4ab16a
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
push 0xfffffffffffffff8
push eax
call fcn.00474eab
pop ecx
pop ecx
mov eax, dword [ebx + 0x2c]
inc eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x24]
add eax, dword [edi + 0x18]
add dword [ebx + 0x2c], eax
xor eax, eax
push eax
mov eax, dword [edi + 0x18]
add eax, dword [edi + 0xc]
mov edi, dword [esp + 0x14]
mov ecx, edi
push eax
push dword [esp + 0x34]
push 0x62
pop edx
call fcn.004746eb
add esp, 0xc
xor eax, eax
mov ecx, edi
push eax
push eax
push dword [esp + 0x34]
push 0x7a
pop edx
call fcn.004746eb
add esp, 0xc
cmp byte [ebx + 0xd7], 2
jne 0x4ab3c6
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
test ecx, ecx
je 0x4ab1da
test byte [edx + 0x1c], 0x80
je 0x4ab1d6
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x4ab1da
mov eax, dword [ecx]
jmp 0x4ab1e5
xor eax, eax
mov dword [esp + 0x4c], eax
mov eax, 0x420b82
cmp dword [esp + 0x4c], 0
mov ecx, 0x420b82
push eax
mov eax, 0x431f58
cmove eax, ecx
push eax
push dword [edx]
xor eax, eax
push 0x431f70
push eax
push ebx
call fcn.00474928
add esp, 0x18
jmp 0x4ab3c6
xor eax, eax
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
cmp dword [edi + 0x1c], eax
je 0x4ab28a
mov dword [esp + 0x14], eax
test ecx, ecx
jle 0x4ab266
mov edx, dword [edi + 0x20]
mov ebx, ecx
mov esi, eax
mov eax, dword [edx]
test dword [eax + 4], 0x1000000
jne 0x4ab24c
mov eax, dword [edx + 4]
mov ecx, ebx
test byte [eax + 4], 0x20
jne 0x4ab256
inc esi
add edx, 0x10
mov ecx, ebx
cmp esi, ebx
jl 0x4ab236
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x4ab2af
inc dword [ebx + 0x2c]
xor ecx, ecx
mov eax, dword [ebx + 0x2c]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push 0x47
pop edx
mov dword [esp + 0x38], eax
call fcn.004746eb
add esp, 0xc
jmp 0x4ab2af
cmp ecx, 1
jne 0x4ab2af
mov eax, dword [edi + 0x20]
xor ecx, ecx
cmp dword [eax + 8], ecx
jl 0x4ab2af
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x28], eax
neg eax
sbb eax, eax
and eax, 0x500
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x2c]
mov edx, edi
inc eax
mov ecx, ebx
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x24]
add eax, dword [edi + 0x18]
add dword [ebx + 0x2c], eax
call fcn.004a910e
mov edx, dword [esp + 0x1c]
xor eax, eax
push eax
movzx eax, byte [esp + 0x3b]
mov ecx, ebx
or ax, word [esp + 0x34]
movzx eax, ax
push eax
push esi
push dword [esp + 0x34]
push dword [esp + 0x84]
push dword [esp + 0x6c]
call fcn.004bba53
add esp, 0x18
mov dword [esp + 0x20], eax
test eax, eax
je 0x4a9a8f
movzx eax, byte [eax + 0x2f]
mov ecx, ebx
mov edx, dword [esp + 0x2c]
push eax
push edi
mov dword [esp + 0x88], eax
call fcn.004a9254
mov edx, dword [esp + 0x88]
pop ecx
pop ecx
test edx, edx
je 0x4ab33e
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4ab33e
push dword [eax + 0xc]
mov ecx, ebx
push dword [eax + 8]
call fcn.004a4183
pop ecx
pop ecx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4ab35b
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0x47
pop edx
call fcn.004746eb
add esp, 0xc
cmp byte [esp + 0x37], 0
mov ecx, dword [esp + 0x20]
je 0x4ab3b4
test byte [ecx + 0x30], 4
je 0x4ab3b4
cmp byte [ecx + 0x2d], 0
je 0x4ab3b4
movzx edx, byte [ecx + 0x2c]
sub edx, 1
js 0x4ab3a4
imul eax, edx, 0x60
add eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x348]
test byte [eax + 0x2c], 4
jne 0x4ab46f
mov eax, dword [esp + 0x14]
sub eax, 0x60
sub edx, 1
mov dword [esp + 0x14], eax
jns 0x4ab384
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x10]
call fcn.00474744
mov ecx, dword [esp + 0x20]
call fcn.004bc4c8
mov edx, edi
mov ecx, ebx
call fcn.004a91f4
mov edi, dword [esp + 0x10]
push 0x10
push dword [esp + 0x4c]
xor eax, eax
push dword [esp + 0x78]
mov dword [esp + 0xc0], eax
push ebx
call fcn.0048a31b
mov eax, dword [esp + 0x58]
mov edx, esi
push eax
push eax
push dword [esp + 0x68]
xor eax, eax
mov ecx, ebx
push eax
push eax
push 0xffffffffffffffff
call fcn.004a41e1
add esp, 0x28
mov edx, dword [esp + 0x48]
mov ecx, edi
call fcn.00474ac0
xor esi, esi
cmp byte [esp + 0x8d], 3
jne 0x4ab426
push 0x431ffc
push 0x431b90
push esi
push ebx
call fcn.00474928
add esp, 0x10
cmp dword [esp + 0xb4], 0
je 0x4ab450
mov eax, dword [esp + 0x38]
mov ecx, ebx
push dword [esp + 0x50]
mov edx, dword [esp + 0x58]
push dword [eax]
lea eax, [esp + 0xbc]
push eax
call fcn.004a4a2f
add esp, 0xc
mov edx, dword [esp + 0x88]
mov ecx, edi
call fcn.00474ac0
xor eax, eax
cmp dword [ebx + 0x24], esi
setg al
mov dword [esp + 0x4c], eax
jmp 0x4a9a8f
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x308]
jmp 0x4ab3a7
mov edi, eax
jmp 0x4a9a93
xor eax, eax
inc eax
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004caec8
mov esp, ebp
pop ebp
ret