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

Disassembly:
sub esp, 0xe0
mov eax, dword [esp + 0xf8]
mov edx, dword [esp + 0x100]
push ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x108]
mov ebx, ecx
mov ecx, dword [esp + 0x100]
mov dword [esp + 0x1c], eax
mov al, byte [ebx + 0x321c]
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov edi, dword [esp + 0xf8]
test al, al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov byte [esp + 0x54], 0
mov dword [esp + 0x60], 0
je 0x4f42a6
mov al, byte [edi + 0x2e4c]
test al, al
je 0x4f42a6
mov al, byte [ebp + 0x30]
test al, al
je 0x4f42a6
mov ecx, dword [edi + 0x2e54]
mov byte [esp + 0x54], 1
mov dword [esp + 0x60], ecx
jmp 0x4f4348
mov eax, dword [ebx + 0x336c]
mov edx, dword [esp + 0xfc]
push edx
lea ecx, [eax + 8]
call fcn.00508110
xor esi, esi
lea ecx, [edi + 0x2a14]
test eax, eax
je 0x4f42e8
test al, 1
je 0x4f42dd
cmp dword [ecx - 0x10], 0x16
jne 0x4f42dd
mov edx, dword [ecx]
mov byte [esp + 0x54], 1
mov dword [esp + 0x60], edx
sar eax, 1
inc esi
add ecx, 0x18
cmp esi, 0x20
jl 0x4f42c4
mov al, byte [esp + 0x54]
test al, al
jne 0x4f4348
mov eax, dword [edi + 0x2e00]
test eax, eax
je 0x4f4348
mov ebx, dword [ebx + 0x336c]
mov eax, dword [esp + 0xfc]
push eax
lea ecx, [ebx + 8]
call fcn.00508110
and eax, dword [edi + 0x2e00]
je 0x4f4348
xor esi, esi
lea ecx, [edi + 0x2a14]
mov edx, 5
test eax, eax
je 0x4f4348
test al, 1
je 0x4f433d
cmp dword [ecx - 0x10], edx
je 0x4f433d
mov ebx, dword [ecx]
mov byte [esp + 0x54], 1
mov dword [esp + 0x60], ebx
sar eax, 1
inc esi
add ecx, 0x18
cmp esi, 0x20
jl 0x4f4325
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x4f4369
mov al, byte [esp + 0x54]
test al, al
jne 0x4f4369
mov al, byte [edi + 0x2da4]
mov byte [esp + 0x1b], 1
test al, al
jne 0x4f436e
mov byte [esp + 0x1b], 0
mov ebx, dword [esp + 0x11c]
mov ecx, dword [esp + 0x14]
xor esi, esi
mov edx, dword [esp + 0xfc]
mov ecx, dword [ecx + 0x336c]
cmp ebx, esi
sete al
mov byte [esp + 0x5a], al
mov byte [esp + 0x13], al
mov eax, dword [ecx + 0x4b0]
push edx
imul eax, dword [edi + 0x2d74]
mov dword [esp + 0x90], eax
call fcn.00503e50
cmp ebx, esi
mov dword [esp + 0x68], eax
jg 0x4f43bb
xor eax, eax
jmp 0x4f43cf
cmp ebx, dword [ebp + 0x58]
jge 0x4f43cc
mov eax, dword [ebp + 4]
cmp eax, esi
je 0x4f43cc
mov eax, dword [eax + ebx*4]
jmp 0x4f43cf
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x40], esi
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebp + 0x58]
cmp ebx, ecx
mov dword [esp + 0x50], edx
jge 0x4f4435
cmp ebx, esi
jg 0x4f43f6
mov dword [esp + 0x5c], esi
jmp 0x4f440d
mov eax, dword [ebp + 4]
cmp eax, esi
je 0x4f4406
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x5c], eax
jmp 0x4f440d
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x5c], edx
lea eax, [ebx + 1]
cmp eax, esi
jg 0x4f441a
mov dword [esp + 0x40], esi
jmp 0x4f4435
cmp eax, ecx
jge 0x4f442e
mov edx, dword [ebp + 4]
cmp edx, esi
je 0x4f442e
mov eax, dword [edx + eax*4]
mov dword [esp + 0x40], eax
jmp 0x4f4435
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x84], 0
test byte [eax + 0x335c], 1
je 0x4f4478
lea eax, [ebx + 1]
cmp eax, ecx
jge 0x4f4478
cmp eax, esi
jg 0x4f4459
xor eax, eax
jmp 0x4f446c
cmp eax, ecx
jge 0x4f4469
mov edx, dword [ebp + 4]
cmp edx, esi
je 0x4f4469
mov eax, dword [edx + eax*4]
jmp 0x4f446c
mov eax, dword [ebp + 0x18]
cmp eax, esi
setne dl
mov byte [esp + 0x84], dl
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xf4]
mov edx, dword [eax + 0x3368]
test edx, edx
je 0x4f45a9
cmp ebx, ecx
jge 0x4f45a9
test ebx, ebx
jg 0x4f44a1
xor ebx, ebx
jmp 0x4f44b0
mov eax, dword [ebp + 4]
test eax, eax
je 0x4f44ad
mov ebx, dword [eax + ebx*4]
jmp 0x4f44b0
mov ebx, dword [ebp + 0x18]
test ebx, ebx
setne al
test al, al
je 0x4f45a9
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x2d70]
mov ebx, dword [esp + 0x104]
imul eax, edx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x50]
sub ecx, ecx
mov edx, dword [esi]
add ecx, ebx
add eax, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0xc10]
push eax
mov eax, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x14]
mov al, 2
test byte [ecx + 0x335c], al
je 0x4f458d
mov edx, ecx
test byte [edx + 0x3360], al
je 0x4f4547
mov eax, dword [esp + 0x74]
mov ecx, dword [edi + 0x2d70]
sub eax, ecx
mov dword [esp + 0x6c], eax
jmp 0x4f4557
mov eax, dword [edi + 0x2d70]
mov ecx, dword [esp + 0x6c]
add eax, ecx
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x2da0]
mov edx, dword [esp + 0x6c]
push eax
push 0
mov eax, dword [esp + 0x28]
sub esp, 0x10
mov ecx, esp
push esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x90]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x30]
call fcn.004f3e70
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x3368]
imul edx, dword [edi + 0x2d70]
add ebx, edx
mov dword [esp + 0x104], ebx
jmp 0x4f45b0
mov ebx, dword [esp + 0x104]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov cl, byte [edx + 0x31ca]
test cl, cl
je 0x4f48d9
lea ecx, [eax*4 + 4]
mov dword [esp + 0x48], ecx
mov ecx, 1
sub ecx, dword [esp + 0x68]
mov dword [esp + 0x7c], ecx
cmp eax, dword [esp + 0x40]
jge 0x4f48d9
mov edx, dword [ebp + 0x3c]
lea ecx, [edx + eax]
mov dword [esp + 0x34], ecx
mov dl, byte [ecx]
cmp dl, byte [ecx + 1]
jne 0x4f464d
mov ecx, dword [esp + 0x40]
dec ecx
cmp eax, ecx
je 0x4f464d
mov edx, dword [ebp + 0x38]
lea ecx, [edx + eax]
movsx edx, byte [edx + eax]
test edx, edx
jl 0x4f4619
cmp edx, 0x20
jl 0x4f464d
movsx ecx, byte [ecx + 1]
test ecx, ecx
jl 0x4f4626
cmp ecx, 0x20
jl 0x4f464d
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
cmp edx, ecx
je 0x4f4641
mov ecx, dword [esp + 0x68]
lea ecx, [eax + ecx + 1]
cmp ecx, edx
je 0x4f464d
cmp ecx, dword [ebp + 0x2c]
je 0x4f464d
mov edx, dword [ebp + 0x34]
dec edx
cmp eax, edx
jne 0x4f48b7
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x44]
mov edx, dword [esp + 0x50]
shl eax, 2
mov eax, dword [ecx + eax]
sub eax, edx
mov edx, dword [esp + 0x48]
add eax, ebx
mov ecx, dword [ecx + edx]
mov edx, dword [esp + 0x50]
sub ecx, edx
mov dword [esp + 0x1c], eax
add ecx, ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x110]
cmp eax, ecx
jg 0x4f489f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x108]
cmp eax, ecx
jl 0x4f489f
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov cl, byte [edx]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x80], ecx
mov ecx, dword [ebp + 0x28]
add eax, edx
cmp eax, ecx
jl 0x4f46cb
mov edx, dword [ebp + 0x2c]
cmp eax, edx
jge 0x4f46cb
cmp ecx, edx
mov byte [esp + 0x64], 1
jne 0x4f46d0
mov byte [esp + 0x64], 0
mov ecx, dword [ebp + 0x4c]
cmp ecx, 0xffffffff
je 0x4f46e8
cmp eax, ecx
jl 0x4f46e8
mov ecx, dword [ebp + 0x50]
mov byte [esp + 0x4c], 1
cmp eax, ecx
jl 0x4f46ed
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x4c]
push ebp
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x54]
push edi
push eax
call fcn.004f3d20
mov ecx, dword [ebp + 0x38]
mov edx, dword [esp + 0x30]
mov al, byte [edx + ecx]
cmp al, 9
jne 0x4f4780
mov al, byte [esp + 0x1b]
test al, al
je 0x4f474f
mov al, byte [esp + 0x13]
test al, al
je 0x4f4745
cmp dword [edi + 0x2e3c], 1
jne 0x4f474f
mov eax, dword [edi + 0x2dac]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
jmp 0x4f489f
movsx eax, al
test eax, eax
jl 0x4f4793
cmp eax, 0x20
jge 0x4f4793
mov byte [esp + 0x13], 0
jmp 0x4f474f
mov eax, dword [esp + 0x38]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [edi + 0x2e3c]
test eax, eax
jne 0x4f47e3
mov al, byte [esp + 0x13]
test al, al
je 0x4f489f
mov al, byte [edi + 0x2e40]
test al, al
je 0x4f489f
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
sub eax, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], eax
js 0x4f489f
lea eax, [edx*4]
mov dword [esp + 0x3c], eax
jmp 0x4f480e
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x38]
add edx, ecx
cmp byte [edx + eax], 0x20
jne 0x4f487e
mov al, byte [esp + 0x1b]
test al, al
je 0x4f4883
mov al, byte [esp + 0x13]
test al, al
je 0x4f4832
cmp dword [edi + 0x2e3c], 1
jne 0x4f4883
mov ebp, dword [ebp + 0x44]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + ebp]
mov edx, dword [esp + 0x2c]
add ecx, edx
add eax, ebx
mov edx, dword [esi]
mov ecx, dword [ebp + ecx*4 + 4]
mov ebp, dword [edi + 0x2dac]
push ebp
add ecx, ebx
sub esp, 0x10
mov ebp, esp
mov dword [ebp], eax
mov eax, dword [esp + 0x34]
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x118]
jmp 0x4f4883
mov byte [esp + 0x13], 0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
inc ecx
add edx, 4
cmp ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edx
jle 0x4f480a
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x68]
add eax, edx
add eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
inc eax
add edx, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x14]
mov cl, byte [edx + 0x31ca]
test cl, cl
jne 0x4f45e2
mov al, byte [edx + 0x31ca]
test al, al
je 0x4f494f
mov ecx, dword [edi + 0x2da0]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x110]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x128]
push edx
push ebp
mov edx, dword [esp + 0x134]
sub esp, 0x10
mov eax, esp
push edi
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x150]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x154]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0xc], edx
call fcn.004f3fe0
mov ecx, dword [esp + 0x11c]
mov al, byte [esp + 0x5a]
test ecx, ecx
mov byte [esp + 0x13], al
jg 0x4f496c
mov dword [esp + 0x2c], 0
jmp 0x4f4988
cmp ecx, dword [ebp + 0x58]
jge 0x4f4981
mov eax, dword [ebp + 4]
test eax, eax
je 0x4f4981
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x2c], ecx
jmp 0x4f4988
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x40]
cmp edx, eax
mov dword [esp + 0x30], edx
jge 0x4f538a
mov eax, dword [esp + 0x68]
lea ecx, [edx + eax]
mov eax, dword [ebp + 0x3c]
add eax, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
mov cl, byte [eax]
cmp cl, byte [eax + 1]
jne 0x4f4a04
mov eax, dword [esp + 0x40]
dec eax
cmp edx, eax
je 0x4f4a04
mov ecx, dword [ebp + 0x38]
lea eax, [ecx + edx]
movsx ecx, byte [ecx + edx]
test ecx, ecx
jl 0x4f49d3
cmp ecx, 0x20
jl 0x4f4a04
movsx eax, byte [eax + 1]
test eax, eax
jl 0x4f49e0
cmp eax, 0x20
jl 0x4f4a04
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
cmp eax, ecx
je 0x4f49f8
mov ecx, dword [esp + 0x3c]
inc ecx
cmp ecx, eax
je 0x4f4a04
cmp ecx, dword [ebp + 0x2c]
je 0x4f4a04
mov eax, dword [ebp + 0x34]
dec eax
cmp edx, eax
jne 0x4f5379
mov ecx, dword [esp + 0x2c]
lea eax, [ecx*4]
mov ecx, dword [ebp + 0x44]
mov eax, dword [ecx + eax]
mov ecx, dword [ecx + edx*4 + 4]
sub eax, dword [esp + 0x50]
add eax, ebx
inc edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
sub ecx, edx
add ecx, ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x110]
cmp eax, ecx
jg 0x4f536c
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x108]
cmp edx, eax
jl 0x4f536c
mov ecx, dword [esp + 0x34]
xor eax, eax
mov al, byte [ecx]
lea edx, [eax + eax*4]
shl edx, 4
lea ecx, [edx + edi]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x80], ecx
mov ecx, dword [ecx + 0x208]
mov dword [esp + 0x34], ecx
lea ecx, [eax + eax*4 + 0x23]
shl ecx, 4
add ecx, edi
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x4c]
cmp ecx, 0xffffffff
je 0x4f4ab1
cmp edx, ecx
jl 0x4f4ab1
mov ecx, dword [esp + 0x14]
cmp edx, dword [ecx + 0x3344]
jge 0x4f4ab1
mov cl, byte [edi + 0x2dd8]
test cl, cl
je 0x4f4ab1
mov ecx, dword [edi + 0x2de0]
mov dword [esp + 0x34], ecx
cmp edx, dword [ebp + 0x28]
jl 0x4f4d4b
mov ecx, dword [ebp + 0x2c]
cmp edx, ecx
jge 0x4f4d4b
cmp dword [ebp + 0x28], ecx
je 0x4f4d47
mov cl, byte [edi + 0x2d78]
mov byte [esp + 0x7c], 1
test cl, cl
je 0x4f4ae7
mov edx, dword [edi + 0x2d80]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x4c]
cmp ecx, 0xffffffff
je 0x4f4b03
cmp edx, ecx
jl 0x4f4b03
mov ecx, dword [ebp + 0x50]
mov byte [esp + 0x64], 1
cmp edx, ecx
jl 0x4f4b08
mov byte [esp + 0x64], 0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x64]
push ebp
push ecx
mov ecx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x64]
push edi
push eax
call fcn.004f3d20
mov eax, dword [ebp + 0x38]
mov ecx, dword [esp + 0x30]
mov al, byte [eax + ecx]
cmp al, 9
jne 0x4f4d55
mov edx, dword [esp + 0x14]
mov al, byte [edx + 0x31ca]
test al, al
jne 0x4f4ba4
mov al, byte [esp + 0x1b]
test al, al
je 0x4f4b78
mov al, byte [esp + 0x13]
test al, al
je 0x4f4b6e
cmp dword [edi + 0x2e3c], 1
jne 0x4f4b78
mov eax, dword [edi + 0x2dac]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [edi + 0x2e3c]
test eax, eax
jne 0x4f4bc4
mov al, byte [esp + 0x13]
test al, al
je 0x4f4cb1
mov al, byte [edi + 0x2e40]
test al, al
je 0x4f4be4
mov al, byte [edi + 0x2d98]
test al, al
je 0x4f4bd8
mov ecx, dword [edi + 0x2da0]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x18]
mov al, byte [esp + 0x13]
test al, al
je 0x4f4cb1
mov al, byte [edi + 0x2e40]
test al, al
je 0x4f4cb1
mov eax, dword [ebp + 0x44]
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x8c]
cdq
idiv ecx
mov edx, dword [esp + 0x30]
imul eax, ecx
mov ecx, dword [ebp + 0x44]
inc edx
mov dword [esp + 0x38], eax
cmp eax, dword [ecx + edx*4]
jge 0x4f4cb1
lea edx, [eax + ebx]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
cmp eax, dword [ecx + edx*4]
jl 0x4f4c8d
test eax, eax
jle 0x4f4c8d
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x20]
cmp ecx, eax
mov eax, dword [esp + 0x1c]
sete cl
push ecx
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov eax, dword [edi + 0x2d64]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x114]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x34]
push esi
call fcn.004f3df0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
add edx, ecx
add eax, ecx
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
inc edx
cmp eax, dword [ecx + edx*4]
jl 0x4f4c31
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x4f525d
mov cl, byte [esp + 0x13]
test cl, cl
je 0x4f4cd0
cmp eax, 1
jne 0x4f525d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
inc eax
add ecx, 4
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 0x2d6c]
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x28]
dec edx
sub ecx, eax
mov eax, dword [edi + 0x2d64]
mov dword [esp + 0xc8], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add eax, edx
mov edx, dword [esp + 0xc0]
push eax
sub esp, 0x10
mov eax, esp
push esi
mov dword [eax], edx
mov edx, dword [esp + 0xdc]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xe0]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.004f3400
add esp, 0x18
jmp 0x4f525d
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x7c], 0
jmp 0x4f4aeb
movsx ecx, al
test ecx, ecx
jl 0x4f4f5d
cmp ecx, 0x20
jge 0x4f4f5d
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x13], 0
cmp dword [ecx + 0x31bc], 0x20
jge 0x4f4ef9
push eax
call fcn.004f06c0
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], eax
add esp, 4
mov al, byte [edx + 0x31ca]
test al, al
jne 0x4f4dc6
mov ecx, dword [esp + 0x48]
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 0xc], ecx
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
lea ebx, [edi + 0xd70]
push ebx
mov ecx, esi
call dword [edx + 0x68]
mov ebp, eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x60]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x94], ecx
mov ecx, dword [edi + 0x2d68]
mov edx, dword [esp + 0x28]
sub eax, ebp
mov ebp, ecx
mov dword [esp + 0x90], ebx
sub ebp, eax
mov eax, dword [esp + 0x20]
add ebp, eax
mov dword [esp + 0x9c], edx
lea eax, [ecx + eax + 1]
inc ebx
mov dword [esp + 0x9c], eax
dec eax
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [ebp + 1]
mov dword [esp + 0xd8], ebp
sub esp, 0x10
mov dword [esp + 0xe8], ecx
mov eax, dword [esp + 0xe8]
mov ecx, esp
mov edx, dword [esi]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xf0]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
mov dword [esp + 0xb0], ebx
inc ebx
push ecx
mov dword [esp + 0xb4], ebx
mov ebx, dword [esp + 0x48]
dec eax
push edx
mov dword [esp + 0xbc], ebp
mov ebp, dword [esi]
push ebx
mov dword [esp + 0xc4], eax
call fcn.004f33e0
add esp, 4
mov edx, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0x2c]
push ebx
mov ebx, dword [edi + 0x2d68]
add eax, ebx
push eax
lea eax, [edi + 0xd70]
push eax
mov eax, dword [esp + 0xcc]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0xe0]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc4]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [ebp + 0x4c]
mov ebx, dword [esp + 0x104]
mov ebp, dword [esp + 0x118]
jmp 0x4f525d
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov byte [esp + 0x5b], 0
mov cl, byte [eax + 0x31bc]
mov eax, dword [esp + 0x34]
mov byte [esp + 0x5a], cl
mov ecx, dword [esp + 0x48]
push eax
push ecx
mov ecx, dword [edi + 0x2d68]
lea eax, [esp + 0x62]
push 1
push eax
mov eax, dword [esp + 0x30]
add ecx, eax
lea eax, [edi + 0xd70]
push ecx
mov ecx, dword [esp + 0x30]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x48]
jmp 0x4f525d
mov edx, dword [esp + 0x80]
mov al, byte [edx + 0x22c]
test al, al
je 0x4f5025
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov cl, byte [eax + 0x31ca]
test cl, cl
je 0x4f4fd2
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
sub ecx, eax
inc ecx
push ecx
mov ecx, dword [ebp + 0x38]
add ecx, eax
mov eax, dword [edi + 0x2d68]
push ecx
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x50]
push eax
push ecx
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x50]
jmp 0x4f5025
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
sub ecx, eax
inc ecx
push ecx
mov ecx, dword [ebp + 0x38]
add ecx, eax
mov eax, dword [edi + 0x2d68]
push ecx
mov ecx, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x34]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x48]
mov eax, dword [edi + 0x2e3c]
test eax, eax
jne 0x4f5049
mov al, byte [esp + 0x13]
test al, al
je 0x4f525d
mov al, byte [edi + 0x2e40]
test al, al
je 0x4f525d
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
sub eax, edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], eax
js 0x4f525d
lea eax, [edx*4]
mov dword [esp + 0x38], eax
jmp 0x4f5074
mov edx, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [ebp + 0x38]
cmp byte [ecx + edx], 0x20
jne 0x4f5238
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x4f51b7
mov cl, byte [edi + 0x2d98]
test cl, cl
je 0x4f50a5
mov ecx, dword [edi + 0x2da0]
mov dword [esp + 0x34], ecx
mov cl, byte [esp + 0x13]
test cl, cl
je 0x4f50b6
cmp eax, 1
jne 0x4f51b7
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x4c]
mov ecx, dword [edx + 0x44]
mov edx, dword [esp + 0x2c]
add eax, edx
mov edx, dword [esp + 0x38]
mov ebp, dword [ecx + edx]
lea eax, [ecx + eax*4 + 4]
mov dword [esp + 0x88], eax
mov eax, dword [eax]
add eax, ebp
cdq
sub eax, edx
mov ebp, eax
mov eax, dword [esp + 0x14]
sar ebp, 1
mov dl, byte [eax + 0x31ca]
test dl, dl
jne 0x4f5159
mov al, byte [esp + 0x1b]
test al, al
je 0x4f5159
mov al, byte [esp + 0x13]
test al, al
je 0x4f510e
cmp dword [edi + 0x2e3c], 1
jne 0x4f5159
mov edx, dword [edi + 0x2dac]
mov eax, ebx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x38]
add eax, dword [ecx + edx]
mov edx, dword [esp + 0x88]
mov ecx, ebx
mov ebx, dword [edx]
mov edx, dword [esi]
add ecx, ebx
mov ebx, dword [esp + 0x48]
push ebx
sub esp, 0x10
mov ebx, esp
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
mov ebx, dword [esp + 0x104]
mov eax, dword [esp + 0x50]
sub ebp, eax
mov eax, dword [edi + 0x2d64]
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add eax, edx
add ebp, ebx
lea ecx, [eax + 1]
lea edx, [ebp + 1]
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0xec], edx
sub esp, 0x10
mov edx, dword [esi]
mov ecx, esp
mov dword [ecx], ebp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xfc]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x100]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov ebp, dword [esp + 0x118]
mov al, byte [esp + 0x13]
test al, al
je 0x4f523d
mov al, byte [edi + 0x2e40]
test al, al
je 0x4f523d
mov ecx, dword [ebp + 0x44]
mov edx, dword [esp + 0x38]
mov eax, dword [edx + ecx]
test eax, eax
mov dword [esp + 0x88], eax
jle 0x4f523d
cdq
idiv dword [esp + 0x8c]
test edx, edx
jne 0x4f523d
mov eax, dword [esp + 0x88]
mov ecx, dword [ebp + 0x20]
cmp ecx, eax
sete cl
push ecx
mov ecx, dword [esp + 0x20]
sub esp, 0x10
add eax, ebx
mov edx, esp
push eax
mov eax, dword [esp + 0x118]
mov dword [edx], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], ecx
mov edx, dword [edi + 0x2d64]
mov ecx, dword [esp + 0x2c]
push edx
push eax
push esi
call fcn.004f3df0
jmp 0x4f523d
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
inc ecx
add edx, 4
cmp ecx, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x38], edx
jle 0x4f5070
mov eax, dword [ebp + 0x4c]
cmp eax, 0xffffffff
je 0x4f52ec
mov cl, byte [edi + 0x2df0]
test cl, cl
je 0x4f52ec
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jl 0x4f52ec
cmp ecx, dword [ebp + 0x50]
jge 0x4f52ec
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x78], edx
mov edx, dword [edi + 0x2d68]
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x1c]
lea ecx, [edx + ecx + 1]
mov edx, dword [esi]
mov dword [esp + 0x70], ecx
inc ecx
mov dword [esp + 0x78], ecx
mov cl, byte [edi + 0x2dd8]
test cl, cl
je 0x4f52c3
mov ecx, dword [edi + 0x2de0]
jmp 0x4f52c7
mov ecx, dword [esp + 0x34]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x84]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x88]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x8c]
jmp 0x4f5364
mov ecx, dword [esp + 0x80]
mov al, byte [ecx + 0x225]
test al, al
je 0x4f536c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xac], edx
mov edx, dword [edi + 0x2d68]
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0x1c]
lea ecx, [edx + ecx + 1]
mov edx, dword [esi]
mov dword [esp + 0xa4], ecx
inc ecx
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x34]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0xb8]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xbc]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, ecx
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
inc edx
cmp edx, eax
mov dword [esp + 0x30], edx
jl 0x4f499c
mov edx, dword [esp + 0x14]
mov eax, 1
mov ecx, dword [edx + 0x336c]
mov ecx, dword [ecx + 0x498]
shl eax, cl
cmp eax, 0x100
mov dword [esp + 0x38], eax
jge 0x4f54ba
lea edx, [edi + 0x2d04]
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x5c]
or eax, 0xffffffff
mov edx, ecx
mov dword [esp + 0x44], eax
cmp edx, dword [esp + 0x40]
mov dword [esp + 0x3c], ecx
jg 0x4f549a
test eax, eax
jge 0x4f5400
cmp ecx, dword [esp + 0x40]
jge 0x4f53f8
mov edx, dword [ebp + 0x40]
movsx ecx, byte [edx + ecx]
mov edx, dword [esp + 0x38]
test edx, ecx
mov ecx, dword [esp + 0x3c]
je 0x4f53f8
mov eax, ecx
mov dword [esp + 0x44], eax
test eax, eax
jl 0x4f5489
cmp ecx, dword [esp + 0x40]
jge 0x4f5415
mov edx, dword [ebp + 0x40]
movsx ecx, byte [edx + ecx]
mov edx, dword [esp + 0x38]
test edx, ecx
jne 0x4f5485
mov ecx, dword [ebp + 0x44]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
mov eax, dword [ecx + eax*4]
sub eax, edx
mov edx, dword [esp + 0x44]
add eax, ebx
mov ecx, dword [ecx + edx*4]
mov edx, dword [esp + 0x50]
sub ecx, edx
mov edx, dword [edi + 0x2d68]
add ecx, ebx
mov dword [esp + 0x98], eax
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x10c]
add ecx, edx
lea edx, [esp + 0x108]
mov dword [esp + 0x94], ecx
add ecx, 3
lea eax, [esp + 0x90]
push edx
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x50]
push eax
push esi
call fcn.0054af50
or eax, 0xffffffff
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
inc ecx
cmp ecx, edx
mov dword [esp + 0x3c], ecx
jle 0x4f53d5
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
shl eax, 1
add edx, 0xc
cmp eax, 0x100
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], edx
jl 0x4f53ba
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x31ca]
test al, al
jne 0x4f5534
mov edx, dword [edi + 0x2da0]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x128]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x110]
push ecx
push ebx
push edx
mov edx, dword [esp + 0x128]
push eax
push ebp
mov eax, dword [esp + 0x134]
sub esp, 0x10
mov ecx, esp
push edi
push esi
mov dword [ecx], edx
mov edx, dword [esp + 0x150]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x154]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x54]
call fcn.004f3fe0
cmp dword [edi + 0x2e60], 1
jne 0x4f5579
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov eax, dword [ecx + 0x32b4]
imul eax, dword [edi + 0x2d74]
mov edi, dword [edi + 0x2e5c]
add eax, ebx
push edi
sub esp, 0x10
lea ecx, [eax + 1]
mov edi, esp
mov dword [edi], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edi + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret 0x2c