Function at 0x4a6fb0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb8
push ebx
push ebp
mov ebp, dword [esp + 0xc4]
push esi
test ebp, ebp
push edi
mov byte [esp + 0x77], 0
mov byte [esp + 0x57], 0
mov byte [esp + 0x3b], 0
mov byte [esp + 0x56], 0
jne 0x4a6fe8
pop edi
pop esi
pop ebp
mov ax, 0xbb9
pop ebx
add esp, 0xb8
ret
mov eax, dword [esp + 0xd4]
test eax, eax
jne 0x4a7002
pop edi
pop esi
pop ebp
mov ax, 0xbb9
pop ebx
add esp, 0xb8
ret
push ebp
call fcn.004ac760
mov edx, dword [ebp]
add esp, 4
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x30]
cmp eax, ecx
jle 0x4a70bc
mov eax, dword [edx + 0x4c]
test eax, eax
jne 0x4a7033
pop edi
pop esi
pop ebp
mov eax, 0xbb9
pop ebx
add esp, 0xb8
ret
mov eax, dword [eax]
mov esi, dword [edx + 0x30]
inc esi
mov dword [esp + 0x84], 0
mov cl, byte [eax + 2]
mov al, byte [eax + 4]
mov byte [esp + 0x94], cl
mov cl, byte [edx + 0x2674]
mov edi, dword [esp + 0x94]
mov byte [esp + 0x13], al
test cl, cl
setne byte [esp + 0x23]
and edi, 0xff
lea ecx, [esi - 1]
mov ebx, 1
shl ebx, cl
test edi, ebx
je 0x4a7098
test byte [esp + 0x13], bl
je 0x4a70a3
mov al, byte [esp + 0x23]
test al, al
jne 0x4a70a3
mov dword [esp + 0x84], 0xbc4
jmp 0x4a70a3
mov dword [esp + 0x84], 0xbb9
mov eax, dword [edx + 0xc]
inc esi
inc ecx
cmp esi, eax
jle 0x4a7072
mov eax, dword [esp + 0x84]
test ax, ax
jne 0x4a8c56
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x30]
cmp eax, ecx
jle 0x4a70dc
mov eax, dword [edx + 0x4c]
test eax, eax
jne 0x4a70dc
pop edi
pop esi
pop ebp
mov ax, 0xbb9
pop ebx
add esp, 0xb8
ret
mov esi, dword [esp + 0xd0]
test esi, esi
jne 0x4a7129
mov cx, word [edx + 0x82]
lea esi, [esp + 0x5c]
mov word [esp + 0x5e], cx
mov ax, word [edx + 0x86]
mov word [esp + 0x62], ax
mov cx, word [edx + 0x80]
mov word [esp + 0x5c], cx
mov dx, word [edx + 0x84]
mov dword [esp + 0xd0], esi
mov word [esp + 0x60], dx
mov byte [esp + 0x57], 1
jmp 0x4a715f
add edx, 0x80
push esi
push edx
call fcn.004ac870
add esp, 8
test al, al
jne 0x4a714c
pop edi
pop esi
pop ebp
mov ax, 0xbb9
pop ebx
add esp, 0xb8
ret
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0xd4]
mov eax, dword [ebp]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x98], ecx
mov cx, word [esi]
mov dx, word [eax + 0x1c]
mov ebx, dword [esp + 0xd8]
mov word [esp + 0xac], cx
mov cx, word [esi + 4]
mov di, word [esi + 2]
mov word [esp + 0xc4], cx
mov cx, word [esi + 6]
mov word [esp + 0x90], cx
mov ecx, dword [eax + 0xc]
sub ecx, 4
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x80], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xb4], edi
je 0x4a72a4
dec ecx
je 0x4a729a
dec ecx
je 0x4a7290
mov dword [esp + 0xa8], 0
cmp dword [eax + 0x10], 0xd
jne 0x4a74ab
cmp dword [eax + 0xc], 3
jle 0x4a74ab
movsx ecx, word [esp + 0x90]
movsx edi, di
mov dword [esp + 0x84], edx
mov edx, dword [eax + 0x18]
sub ecx, edi
mov dword [esp + 0xb0], edx
mov word [eax + 0x1c], 3
mov edx, dword [ebp]
lea edi, [ecx + ecx*2]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x9c], ecx
mov dword [edx + 0x18], 1
movsx eax, word [esi]
movsx ecx, word [esi + 4]
sub ecx, eax
mov dword [esp + 0x8c], 3
imul ecx, edi
push ecx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x98], ebx
call fcn.004c8a1a
add esp, 4
mov dword [esp + 0xa4], eax
test eax, eax
jne 0x4a749d
pop edi
pop esi
pop ebp
mov ax, 0xbc8
pop ebx
add esp, 0xb8
ret
mov dword [esp + 0x2c], 0x10
jmp 0x4a72ac
mov dword [esp + 0x2c], 8
jmp 0x4a72ac
mov dword [esp + 0x2c], 4
movsx ecx, word [esp + 0x90]
movsx edi, di
sub ecx, edi
movsx edi, word [esp + 0x2c]
cmp ecx, edi
mov dword [esp + 0x94], ecx
jl 0x4a7302
movsx ecx, word [esi + 4]
movsx edi, word [esp + 0xac]
sub ecx, edi
movsx edi, word [esp + 0x2c]
cmp ecx, edi
jl 0x4a72f7
mov edi, dword [esp + 0xb4]
mov dword [esp + 0xa8], 0
jmp 0x4a71f1
mov ecx, dword [esp + 0x94]
cmp ecx, edi
jge 0x4a7329
mov eax, dword [esp + 0x2c]
cmp word [esp + 0x90], ax
jge 0x4a731c
mov word [esi + 2], 0
mov word [esi + 6], ax
jmp 0x4a732d
mov dx, word [esi + 6]
sub dx, ax
mov word [esi + 2], dx
jmp 0x4a732d
mov eax, dword [esp + 0x2c]
mov cx, word [esi + 4]
movsx edx, word [esi]
movsx ecx, cx
sub ecx, edx
cmp ecx, edi
jge 0x4a7358
cmp word [esi + 4], ax
jge 0x4a734e
mov word [esi], 0
mov word [esi + 4], ax
jmp 0x4a7358
mov dx, word [esi + 4]
sub dx, ax
mov word [esi], dx
mov eax, dword [ebp]
mov dword [esp + 0xa8], 1
movsx ecx, word [esi + 2]
mov edi, dword [eax + 0x10]
sub edi, 0xa
movsx eax, word [esi + 6]
neg edi
sbb edi, edi
sub eax, ecx
and edi, 2
inc edi
movsx edx, di
movsx ecx, word [esi]
imul eax, edx
movsx edx, word [esi + 4]
sub edx, ecx
mov dword [esp + 0x8c], edi
imul edx, eax
push edx
mov dword [esp + 0x8c], eax
call fcn.004c8a1a
add esp, 4
mov dword [esp + 0xa4], eax
test eax, eax
jne 0x4a73dc
mov al, byte [esp + 0x57]
test al, al
jne 0x4a73cd
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
mov dword [esi], eax
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebp
mov ax, 0xbc8
pop ebx
add esp, 0xb8
ret
mov ecx, dword [ebp]
mov dword [esp + 0x94], ebx
mov ebx, dword [esp + 0x88]
mov byte [esp + 0x3b], 1
mov dx, word [ecx + 0x1c]
mov word [esp + 0x84], dx
mov edx, dword [ecx + 0x18]
mov word [ecx + 0x1c], di
mov ecx, dword [ebp]
mov dword [esp + 0xb0], edx
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x9c], edx
mov dword [ecx + 0x18], 1
mov edx, dword [ebp]
mov dword [esp + 0xd4], eax
cmp dword [edx + 0x10], 0xd
jne 0x4a7486
movsx ecx, word [esi + 2]
movsx eax, word [esi + 6]
movsx edx, word [esi]
sub eax, ecx
mov dword [esp + 0x80], 1
movsx ecx, word [esi + 4]
sub ecx, edx
mov dword [esp + 0xa0], eax
imul ecx, eax
push ecx
call fcn.004c8a1a
add esp, 4
mov dword [esp + 0x98], eax
test eax, eax
jne 0x4a747f
pop edi
pop esi
pop ebp
mov ax, 0xbc8
pop ebx
add esp, 0xb8
ret
mov byte [esp + 0x56], 1
jmp 0x4a74ab
mov dword [esp + 0x80], edi
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x98], eax
jmp 0x4a74ab
mov byte [esp + 0x3b], 1
mov ebx, edi
mov dword [esp + 0xd4], eax
mov edx, dword [ebp]
mov ax, word [esi + 2]
mov word [edx + 0x5e], ax
mov ecx, dword [ebp]
mov dx, word [esi + 6]
mov word [ecx + 0x62], dx
mov eax, dword [ebp]
mov cx, word [esi]
mov word [eax + 0x5c], cx
mov edx, dword [ebp]
mov ax, word [esi + 4]
mov word [edx + 0x60], ax
mov eax, dword [ebp]
lea ecx, [eax + 0x58]
lea edx, [eax + 0x54]
push ecx
lea ecx, [eax + 0x50]
push edx
push ecx
movsx ecx, word [eax + 0x1c]
lea edx, [eax + 0x5c]
push ebx
push edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push ecx
push edx
push eax
call fcn.004b5720
mov eax, dword [ebp]
add esp, 0x20
mov cx, word [eax + 0x5e]
mov word [esp + 0x5e], cx
mov dx, word [eax + 0x62]
mov word [esp + 0x62], dx
mov cx, word [eax + 0x5c]
mov word [esp + 0x5c], cx
mov dx, word [eax + 0x60]
mov word [esp + 0x60], dx
cmp word [eax + 0x64], 0
jne 0x4a757d
push ebp
mov word [eax + 0x66], 0
call fcn.004a9040
mov ebx, eax
add esp, 4
test bx, bx
jne 0x4a8b61
mov ecx, dword [ebp]
mov byte [esp + 0x77], 1
movsx esi, word [ecx + 0x60]
movsx eax, word [ecx + 0x5c]
sub esi, eax
mov eax, 0xffff
cdq
idiv esi
mov word [ecx + 0x66], ax
mov eax, dword [ebp]
mov cx, word [eax + 0x66]
shl cx, 1
mov word [eax + 0x66], cx
mov dword [0x50ed88], 0
push ebp
call fcn.004a9040
mov ebx, eax
add esp, 4
test bx, bx
jne 0x4a8b61
mov eax, dword [ebp]
mov edi, dword [esp + 0xd4]
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0xc]
add ecx, edi
cmp edx, 3
mov dword [esp + 0x40], ecx
jg 0x4a77a5
mov dx, word [eax + 0x66]
mov edi, ecx
shl dx, 1
mov word [eax + 0x66], dx
mov eax, dword [ebp]
mov bx, word [eax + 0x62]
sub bx, word [eax + 0x5e]
mov eax, dword [eax + 0xc]
push eax
push ebp
call fcn.004b5710
mov ecx, dword [ebp]
add esp, 8
test al, al
mov dx, word [ecx + 0x5c]
mov byte [esp + 0x13], al
mov word [esp + 0x40], dx
jne 0x4a75fe
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x4c]
and ecx, 0xfffffffe
push eax
push ecx
push ebp
call fcn.004b4a10
jmp 0x4a7610
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x4c]
and al, 0xfe
push edx
push eax
push ebp
call fcn.004b4be0
mov esi, eax
add esp, 0xc
test si, si
jne 0x4a778d
mov ecx, dword [ebp]
mov eax, dword [esp + 0x40]
cmp ax, word [ecx + 0x60]
jge 0x4a778d
jmp 0x4a7635
mov eax, dword [esp + 0x40]
mov edx, eax
and edx, 0xfffffffc
cmp ax, dx
jne 0x4a7653
push ebp
call fcn.004a9040
mov esi, eax
add esp, 4
test si, si
jne 0x4a778d
mov al, byte [esp + 0x13]
test al, al
jne 0x4a767c
lea eax, [esp + 0x48]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
push ebp
call fcn.004b4db0
jmp 0x4a769b
lea edx, [esp + 0x48]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
push ebp
call fcn.004b50c0
mov esi, eax
add esp, 0x18
test si, si
jne 0x4a778d
mov eax, dword [ebp]
mov ecx, dword [eax + 0x10]
add ecx, 0xfffffff6
cmp ecx, 3
ja case.default.0x4a76bb
jmp dword [ecx*4 + 0x4a8c64]
mov dx, word [eax + 0x54]
mov ax, word [eax + 0x5e]
movsx ecx, bx
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push edi
push eax
push ecx
call fcn.004afdb0
add esp, 0x14
jmp 0x4a776d
mov cx, word [eax + 0x54]
movsx edx, bx
push edx
mov edx, dword [eax + 0x18]
push ecx
mov cx, word [eax + 0x5e]
mov eax, dword [eax + 0xb4]
push edx
mov edx, dword [esp + 0x54]
push edi
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x70]
push ecx
push edx
push eax
call fcn.004af090
jmp 0x4a776a
mov dx, word [eax + 0x54]
movsx ecx, bx
push ecx
mov ecx, dword [eax + 0x18]
push edx
mov dx, word [eax + 0x5e]
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x38]
push edi
push edx
mov edx, dword [esp + 0x6c]
push eax
push ecx
push edx
call fcn.004afcb0
add esp, 0x20
jmp 0x4a776d
mov ecx, dword [eax + 0x74]
movsx edx, bx
push ecx
push edx
movsx ecx, word [eax + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [eax + 0xb4]
push edi
push ecx
mov ecx, dword [esp + 0x3c]
push 1
push edx
mov edx, dword [esp + 0x70]
push ecx
push edx
push eax
call fcn.004aca80
add esp, 0x24
mov esi, eax
mov eax, dword [ebp]
add edi, dword [eax + 0x58]
test si, si
jne 0x4a778d
mov ecx, dword [esp + 0x40]
inc ecx
cmp cx, word [eax + 0x60]
mov dword [esp + 0x40], ecx
jl 0x4a7631
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4a779e
push eax
call fcn.004b54b0
add esp, 4
mov ebx, esi
jmp 0x4a89e1
lea ecx, [edx - 3]
mov esi, 1
shl esi, cl
mov cx, word [eax + 0x66]
shl cx, 1
mov word [eax + 0x66], cx
mov eax, dword [ebp]
cmp dword [eax + 0x10], 0xb
je 0x4a77d4
cmp dword [eax + 0xc], 4
jge 0x4a77d4
mov dx, word [eax + 0x66]
shl dx, 1
mov word [eax + 0x66], dx
movsx ecx, si
mov eax, ecx
push 3
cdq
sub eax, edx
push ebp
sar eax, 1
mov dword [esp + 0x4c], eax
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x60], eax
mov eax, dword [ebp]
mov ecx, dword [eax + 0x10]
mov dx, word [eax + 0x62]
mov edi, dword [eax + 0x54]
mov ebx, dword [eax + 0x58]
cmp ecx, 0xa
mov cx, word [eax + 0x5e]
mov eax, dword [eax + 0x18]
mov word [esp + 0x1c], cx
sete byte [esp + 0x2b]
mov dword [esp + 0x74], eax
add eax, eax
mov word [esp + 0x20], dx
mov dword [esp + 0x50], eax
call fcn.004b5710
mov ecx, dword [ebp]
mov byte [esp + 0x1b], al
add esp, 8
movsx eax, word [ecx + 0x5c]
movsx ecx, si
cdq
idiv ecx
mov cl, byte [esp + 0x13]
and al, 0xfe
test cl, cl
jne 0x4a7858
lea edx, [esp + 0x4c]
push edx
push eax
push ebp
call fcn.004b5230
jmp 0x4a7864
lea ecx, [esp + 0x4c]
push ecx
push eax
push ebp
call fcn.004b52b0
add esp, 0xc
mov dword [esp + 0x3c], eax
test ax, ax
jne 0x4a8531
mov eax, dword [ebp]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x24], edx
mov cx, word [eax + 0x5c]
lea eax, [esi + esi]
movsx eax, ax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x50], eax
movsx ecx, cx
dec eax
test eax, ecx
mov dword [esp + 0x30], eax
je 0x4a79ed
mov ecx, dword [esp + 0x1c]
lea eax, [esi + esi]
lea edx, [eax - 1]
and edx, ecx
sub eax, edx
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x13]
test al, al
jne 0x4a78dc
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x78]
push edx
push eax
push ecx
push ebp
call fcn.004b53b0
jmp 0x4a78fb
lea edx, [esp + 0x7c]
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x78]
push ecx
push edx
push eax
push ebp
call fcn.004b5430
add esp, 0x18
mov dword [esp + 0x3c], eax
test ax, ax
jne 0x4a8531
mov ecx, dword [esp + 0x34]
test cx, cx
jle 0x4a79ed
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x48]
movsx ecx, cx
sub eax, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
movsx edx, word [esp + 0x1c]
mov eax, dword [esp + 0x30]
push esi
and edx, eax
movsx eax, si
cmp edx, eax
jge 0x4a7957
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x78]
push ecx
push edi
push edx
push eax
jmp 0x4a796c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x70]
push edx
push edi
push eax
push ecx
call fcn.004a8ed0
mov al, byte [esp + 0x3b]
add esp, 0x18
test al, al
jne 0x4a79cb
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
push esi
add eax, edx
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x84]
add ecx, eax
push edi
push ecx
push edx
mov dword [esp + 0x54], eax
call fcn.004a8f90
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
push esi
push eax
mov eax, dword [esp + 0x9c]
push ecx
push edi
push edx
push eax
call fcn.004a8f90
add esp, 0x30
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
add edx, ebx
inc ecx
dec eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], eax
jne 0x4a792d
mov eax, dword [ebp]
mov edx, 0xb
xor ecx, ecx
cmp dword [eax + 0x10], edx
sete cl
add ecx, 3
cmp dword [eax + 0xc], 4
jle 0x4a7a1f
mov cx, word [eax + 0x66]
shl cx, 1
mov word [eax + 0x66], cx
mov eax, dword [ebp]
xor ecx, ecx
cmp dword [eax + 0x10], edx
sete cl
add ecx, 4
cmp dword [eax + 0xc], 5
jle 0x4a7a3e
mov cx, word [eax + 0x66]
shl cx, 1
mov word [eax + 0x66], cx
mov eax, dword [ebp]
xor ecx, ecx
cmp dword [eax + 0x10], edx
sete cl
add ecx, 5
mov ax, word [eax + 0x60]
lea edx, [esi + esi]
sub ax, dx
cmp word [esp + 0x1c], ax
mov dword [esp + 0x2c], eax
jge 0x4a7ba4
movsx edx, cx
mov dword [esp + 0x34], edx
movsx eax, word [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov edx, eax
sar edx, cl
shl edx, cl
cmp eax, edx
jne 0x4a7a87
push ebp
call fcn.004a9040
add esp, 4
mov dword [esp + 0x3c], eax
test ax, ax
jne 0x4a8531
mov al, byte [esp + 0x13]
test al, al
jne 0x4a7ab0
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x78]
push edx
push eax
push ecx
push ebp
call fcn.004b53b0
jmp 0x4a7acf
lea edx, [esp + 0x7c]
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x78]
push ecx
push edx
push eax
push ebp
call fcn.004b5430
add esp, 0x18
mov dword [esp + 0x3c], eax
test ax, ax
jne 0x4a8531
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push esi
push ecx
mov ecx, dword [esp + 0x78]
push edx
push edi
push eax
push ecx
call fcn.004a8ed0
mov al, byte [esp + 0x3b]
add esp, 0x18
test al, al
jne 0x4a7b50
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push esi
push edx
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x84]
add ecx, edx
push edi
push ecx
push eax
call fcn.004a8f90
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
push esi
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0xa0]
add eax, ecx
push edi
push eax
push edx
call fcn.004a8f90
add esp, 0x30
movsx eax, si
imul eax, ebx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
add ecx, eax
mov eax, dword [esp + 0x18]
push esi
push eax
mov eax, dword [esp + 0x70]
push edx
push edi
push ecx
push eax
mov dword [esp + 0x3c], ecx
call fcn.004a8ed0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
add eax, ecx
lea ecx, [esi + esi]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x34]
add eax, ecx
add esp, 0x18
cmp ax, word [esp + 0x2c]
mov dword [esp + 0x1c], eax
jl 0x4a7a5e
mov eax, dword [ebp]
mov edx, 1
mov ecx, dword [eax + 0xc]
mov ax, word [eax + 0x60]
sub ax, word [esp + 0x1c]
add ecx, 6
shl edx, cl
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x13]
test al, al
mov dword [esp + 0x2c], edx
jne 0x4a7bee
lea edx, [esp + 0x7c]
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x78]
push ecx
push edx
push eax
push ebp
call fcn.004b53b0
jmp 0x4a7c0d
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x78]
push eax
push ecx
push edx
push ebp
call fcn.004b5430
add esp, 0x18
mov dword [esp + 0x3c], eax
test ax, ax
jne 0x4a8531
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
lea eax, [esi + esi]
push esi
add ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x78]
push ecx
push edi
push edx
push eax
call fcn.004a8ed0
mov al, byte [esp + 0x3b]
add esp, 0x18
test al, al
jne 0x4a7c9b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push esi
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x84]
add eax, ecx
push edi
push eax
push edx
call fcn.004a8f90
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
push esi
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0xa0]
add edx, eax
push edi
push edx
push ecx
call fcn.004a8f90
add esp, 0x30
mov eax, dword [esp + 0x34]
dec eax
test ax, ax
mov dword [esp + 0x34], eax
jle 0x4a7e67
cmp ax, si
jl 0x4a7cda
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push esi
push edx
push eax
mov edx, dword [esp + 0x30]
movsx eax, si
imul eax, ebx
mov ecx, dword [esp + 0x74]
add eax, edx
push edi
push eax
push ecx
call fcn.004a8ed0
add esp, 0x18
jmp 0x4a7d24
cmp ax, 1
jl 0x4a7d28
mov edx, dword [esp + 0x24]
movsx eax, ax
add edx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push esi
push ecx
mov ecx, dword [esp + 0x70]
push edx
push edi
push eax
push ecx
call fcn.004a8ed0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
add esp, 0x18
add ecx, ebx
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
jne 0x4a7cf1
mov eax, dword [esp + 0x34]
mov cl, byte [esp + 0x23]
test cl, cl
je 0x4a7d39
cmp ax, si
jle 0x4a7e67
mov dx, word [esp + 0x2c]
cmp word [esp + 0x1c], dx
jl 0x4a7d4f
mov eax, dword [esp + 0x68]
mov dword [esp + 0x70], eax
jmp 0x4a7da7
mov al, byte [esp + 0x13]
test al, al
jne 0x4a7d78
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x78]
push eax
push ecx
push edx
push ebp
call fcn.004b53b0
jmp 0x4a7d97
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x78]
push edx
push eax
push ecx
push ebp
call fcn.004b5430
add esp, 0x18
mov dword [esp + 0x3c], eax
test ax, ax
jne 0x4a8531
mov edx, dword [esp + 0x34]
cmp dx, si
jle 0x4a7df7
lea eax, [esi + 1]
cmp ax, dx
jg 0x4a7df7
movsx ecx, ax
mov ebp, ecx
mov eax, dword [esp + 0x24]
imul ebp, ebx
add ebp, eax
movsx eax, dx
sub eax, ecx
inc eax
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
push esi
push edx
push eax
push edi
push ebp
push ecx
call fcn.004a8ed0
mov eax, dword [esp + 0x48]
add esp, 0x18
add ebp, ebx
dec eax
mov dword [esp + 0x30], eax
jne 0x4a7dd0
mov al, byte [esp + 0x23]
test al, al
jne 0x4a7e67
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x6c]
lea ebp, [edx + eax]
sub ecx, eax
movsx eax, word [esp + 0x34]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add ebp, ebx
push esi
push ecx
mov ecx, dword [esp + 0x80]
push edx
add eax, ebp
push edi
push eax
push ecx
call fcn.004a8f90
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x94]
push esi
push edx
push eax
push edi
push ebp
push ecx
call fcn.004a8f90
mov eax, dword [esp + 0x60]
add esp, 0x30
dec eax
mov dword [esp + 0x30], eax
jne 0x4a7e1d
mov edx, dword [esp + 0xcc]
mov ebp, dword [esp + 0x40]
cmp si, 8
mov eax, dword [edx]
mov ax, word [eax + 0x5c]
mov dword [esp + 0x1c], eax
jne 0x4a7efe
test al, 1
je 0x4a7f04
and eax, 7
cmp ax, 4
jge 0x4a7eab
movsx ecx, word [esp + 0x18]
movsx edx, word [esp + 0x14]
push 8
push ecx
push edx
mov eax, ebp
push edi
push eax
call fcn.004b1dd0
add esp, 0x14
jmp 0x4a7eec
cmp ax, 5
push 8
jne 0x4a7ecd
movsx ecx, word [esp + 0x1c]
movsx edx, word [esp + 0x18]
mov eax, dword [esp + 0x44]
push ecx
push edx
mov edx, ebx
lea ecx, [eax + ebx*2]
push edi
add edx, ecx
jmp 0x4a7ee1
movsx eax, word [esp + 0x1c]
movsx ecx, word [esp + 0x18]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edi
lea edx, [ebx + eax]
push edx
push eax
push eax
call fcn.004b1f90
add esp, 0x1c
mov eax, dword [esp + 0x40]
lea ebp, [ebx + eax]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
jmp 0x4a7f04
cmp si, 4
jl 0x4a7f69
movsx edx, word [esp + 0x44]
movsx ecx, ax
mov dword [esp + 0x28], edx
dec edx
test ecx, edx
je 0x4a7f69
movsx eax, si
movsx edx, word [esp + 0x14]
dec eax
push esi
and eax, ecx
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
movsx ecx, word [esp + 0x1c]
push ecx
push edx
push edi
jle 0x4a7f48
movsx eax, word [esp + 0x68]
imul eax, ebx
add eax, ebp
push eax
push ebp
push ebp
call fcn.004b1f90
add esp, 0x1c
jmp 0x4a7f51
push ebp
call fcn.004b1dd0
add esp, 0x14
mov eax, dword [esp + 0x58]
movsx ecx, ax
imul ecx, ebx
add ebp, ecx
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x1c], ecx
mov eax, ecx
movsx ecx, si
movsx edx, ax
dec ecx
test edx, ecx
je 0x4a7faf
movsx eax, word [esp + 0x44]
movsx ecx, word [esp + 0x18]
imul eax, ebx
movsx edx, word [esp + 0x14]
push esi
push ecx
add eax, ebp
push edx
push edi
push eax
push ebp
push ebp
mov dword [esp + 0x4c], eax
call fcn.004b1f90
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x4c]
add esp, 0x1c
add ecx, eax
mov dword [esp + 0x1c], ecx
mov eax, ecx
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx]
mov cx, word [edx + 0x60]
sub cx, si
cmp ax, cx
mov dword [esp + 0x2c], ecx
jge 0x4a8030
movsx eax, word [esp + 0x44]
imul eax, ebx
mov dword [esp + 0x30], eax
movsx eax, si
imul eax, ebx
mov dword [esp + 0x28], eax
movsx ecx, word [esp + 0x18]
mov eax, dword [esp + 0x28]
push esi
push ecx
add eax, ebp
movsx ecx, word [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x3c]
push edi
push eax
add ecx, ebp
push ebp
push ecx
mov dword [esp + 0x64], eax
call fcn.004b1f90
movsx eax, word [esp + 0x34]
push esi
push eax
movsx eax, word [esp + 0x38]
push eax
push edi
push ebp
call fcn.004b1dd0
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x78]
add eax, esi
add esp, 0x30
cmp ax, word [esp + 0x2c]
mov dword [esp + 0x1c], eax
jl 0x4a7fde
mov edx, dword [esp + 0xcc]
mov ecx, dword [edx]
mov cx, word [ecx + 0x60]
sub cx, ax
dec ecx
cmp cx, word [esp + 0x44]
mov dword [esp + 0x34], ecx
jl 0x4a8074
movsx edx, word [esp + 0x44]
imul edx, ebx
movsx ecx, word [esp + 0x18]
lea eax, [edx + ebp]
push esi
movsx edx, word [esp + 0x18]
push ecx
push edx
push edi
push eax
push ebp
push eax
call fcn.004b1f90
mov ecx, dword [esp + 0x50]
add esp, 0x1c
cmp si, 4
jl 0x4a80e9
movsx eax, word [esp + 0x44]
movsx edx, cx
dec eax
test edx, eax
je 0x4a80e9
movsx eax, word [esp + 0x58]
lea ecx, [eax + eax*2]
cmp edx, ecx
jl 0x4a80b5
movsx edx, word [esp + 0x18]
imul eax, ebx
movsx ecx, word [esp + 0x14]
push esi
push edx
lea edx, [ebp + eax*2]
push ecx
add eax, edx
push edi
push eax
call fcn.004b1dd0
add esp, 0x14
jmp 0x4a80e5
mov ecx, dword [esp + 0x34]
cmp cx, word [esp + 0x58]
jl 0x4a80e9
cmp cx, word [esp + 0x44]
jge 0x4a80e9
movsx ecx, word [esp + 0x18]
imul eax, ebx
movsx edx, word [esp + 0x14]
push esi
push ecx
add eax, ebp
push edx
push edi
push eax
push ebp
push eax
call fcn.004b1f90
add esp, 0x1c
mov ecx, dword [esp + 0x34]
cmp si, 8
jne 0x4a8144
test cl, 1
je 0x4a8144
and cl, 7
cmp cl, 4
jge 0x4a8122
movsx eax, word [esp + 0x34]
movsx ecx, word [esp + 0x18]
imul eax, ebx
movsx edx, word [esp + 0x14]
push 8
push ecx
add eax, ebp
push edx
push edi
push eax
push ebp
push eax
call fcn.004b1f90
add esp, 0x1c
jmp 0x4a8144
movsx edx, word [esp + 0x34]
movsx eax, word [esp + 0x18]
imul edx, ebx
movsx ecx, word [esp + 0x14]
push 8
push eax
push ecx
add edx, ebp
push edi
push edx
call fcn.004b1dd0
add esp, 0x14
movsx eax, word [esp + 0x18]
movsx ecx, word [esp + 0x14]
push esi
push eax
push ecx
push edi
push ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], ecx
call fcn.004b1dd0
mov al, byte [esp + 0x37]
add esp, 0x14
test al, al
jne 0x4a852a
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax]
mov eax, dword [esp + 0x6c]
mov dx, word [ecx + 0x5c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], edx
lea ebp, [eax + ecx]
mov ecx, dword [esp + 0x50]
movsx eax, dx
dec ecx
and eax, ecx
mov dword [esp + 0x30], eax
je 0x4a833d
lea eax, [esi + esi]
lea ecx, [eax - 1]
and ecx, edx
sub eax, ecx
mov dword [esp + 0x34], eax
movsx eax, ax
imul eax, ebx
add eax, ebp
cmp si, 8
mov dword [esp + 0x18], eax
jne 0x4a8233
test dl, 1
je 0x4a823d
mov eax, dword [esp + 0x30]
movsx ecx, word [esp + 0x44]
cdq
idiv ecx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esp + 0x18]
push 8
push edx
push eax
push edi
push ecx
push ebp
push ebp
call fcn.004b2f50
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x48]
push 8
push edx
mov edx, dword [esp + 0x40]
lea eax, [ecx + ebp]
push edx
mov edx, dword [esp + 0x48]
add edx, ecx
push edi
push edx
push eax
push eax
call fcn.004b2f50
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x74]
add esp, 0x40
add ebp, ebx
inc ecx
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], eax
mov edx, ecx
jmp 0x4a823d
cmp si, 4
jl 0x4a82c6
movsx ecx, word [esp + 0x44]
movsx eax, dx
mov dword [esp + 0x28], ecx
dec ecx
test eax, ecx
je 0x4a82c6
mov ecx, dword [esp + 0x50]
dec ecx
and eax, ecx
mov ecx, dword [esp + 0x18]
cdq
idiv dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esp + 0x18]
push esi
push edx
push eax
push edi
push ecx
push ebp
push ebp
call fcn.004b2f50
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x48]
push esi
push edx
mov edx, dword [esp + 0x40]
lea eax, [ecx + ebp]
push edx
mov edx, dword [esp + 0x48]
add edx, ecx
push edi
push edx
push eax
push eax
call fcn.004b2f50
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x5c]
movsx ecx, ax
imul ecx, ebx
add ebp, ecx
mov ecx, dword [esp + 0x74]
add esp, 0x40
add edx, eax
sub ecx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x50]
movsx ecx, dx
dec eax
test eax, ecx
je 0x4a833d
movsx eax, word [esp + 0x34]
movsx ecx, word [esp + 0x44]
mov dword [esp + 0x2c], eax
push 1
cdq
idiv ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x1c]
push esi
push edx
push eax
push edi
push ebx
push ebp
call fcn.004b3ad0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
push 1
push ecx
mov ecx, dword [esp + 0x94]
push esi
push edx
push eax
push edi
lea edx, [ecx + ebp]
push ebx
push edx
call fcn.004b3ad0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
imul eax, ebx
add ebp, eax
mov eax, dword [esp + 0x74]
add esp, 0x40
add ecx, eax
mov dword [esp + 0x1c], ecx
mov edx, ecx
mov ecx, dword [esp + 0xcc]
mov eax, dword [ecx]
lea ecx, [esi + esi]
mov ax, word [eax + 0x60]
sub ax, cx
cmp dx, ax
mov dword [esp + 0x2c], eax
jge 0x4a83b3
mov eax, dword [esp + 0x50]
imul eax, ebx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push esi
push ecx
push edx
push edi
push ebx
push ebp
call fcn.004b22b0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x84]
push esi
push eax
push ecx
push edi
lea eax, [edx + ebp]
push ebx
push eax
call fcn.004b22b0
mov eax, dword [esp + 0x60]
lea ecx, [esi + esi]
add ebp, eax
mov eax, dword [esp + 0x4c]
add eax, ecx
add esp, 0x30
cmp ax, word [esp + 0x2c]
mov dword [esp + 0x1c], eax
jl 0x4a8364
mov edx, eax
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x50], 0
mov eax, dword [ecx]
movsx ecx, word [esp + 0x44]
mov ax, word [eax + 0x60]
sub ax, dx
lea edx, [ecx - 1]
dec eax
mov dword [esp + 0x30], edx
movsx ecx, ax
not edx
and edx, ecx
mov dword [esp + 0x2c], ecx
imul edx, ebx
add ebp, edx
cmp si, 4
jl 0x4a84da
movsx ecx, word [esp + 0x58]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x30]
and edx, ecx
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jl 0x4a841a
imul ecx, ebx
add ebp, ecx
mov dword [esp + 0x50], ebp
cmp si, 8
jl 0x4a847b
test al, 1
je 0x4a847b
mov eax, dword [esp + 0x2c]
add ebp, ebx
movsx ecx, word [esp + 0x44]
cdq
idiv ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x30], eax
push eax
mov eax, dword [esp + 0x28]
push esi
push eax
push ecx
push edi
push ebp
push edx
push ebp
call fcn.004b2f50
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x38]
push esi
push edx
mov edx, dword [esp + 0x44]
add ebp, eax
push ecx
push edi
add edx, eax
push ebp
push edx
push ebp
call fcn.004b2f50
add esp, 0x40
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4a84da
mov eax, dword [esp + 0x2c]
movsx ecx, word [esp + 0x44]
cdq
idiv ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ebp, [eax + 1]
mov eax, dword [esp + 0x24]
push ebp
push esi
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edi
push eax
push edx
push eax
call fcn.004b2f50
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x70]
push ebp
push esi
push edx
mov edx, dword [esp + 0x40]
add eax, ecx
push edx
mov edx, dword [esp + 0x48]
push edi
add edx, ecx
push eax
push edx
push eax
call fcn.004b2f50
add esp, 0x40
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x18]
movsx ecx, word [esp + 0x44]
cdq
idiv ecx
mov ecx, dword [esp + 0x14]
push 0
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x2c]
push esi
push eax
push ecx
push edi
push ebx
push ebp
call fcn.004b3ad0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
push 0
push edx
mov edx, dword [esp + 0x94]
push esi
push eax
push ecx
push edi
add ebp, edx
push ebx
push ebp
call fcn.004b3ad0
add esp, 0x40
mov ebp, dword [esp + 0xcc]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4a8542
push eax
call fcn.004b54b0
add esp, 4
mov ebx, dword [esp + 0x3c]
test bx, bx
jne 0x4a8b61
mov eax, dword [ebp]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x4a8564
mov ecx, dword [ecx]
mov dl, byte [ecx + 2]
mov byte [esp + 0x13], dl
jmp 0x4a8569
mov byte [esp + 0x13], 0
test byte [esp + 0x13], 8
je 0x4a85b5
push 4
push ebp
call fcn.004a99d0
mov ebx, eax
add esp, 8
test bx, bx
jne 0x4a8b61
mov eax, dword [ebp]
mov edi, dword [esp + 0x40]
push 4
push 0
mov ecx, dword [eax + 0x58]
mov edx, dword [eax + 0x54]
push ecx
push edx
lea eax, [esp + 0x6c]
push edi
push eax
push ebp
call fcn.004a9d50
mov ebx, eax
add esp, 0x1c
test bx, bx
jne 0x4a8b61
jmp 0x4a85db
mov ecx, dword [eax + 0x58]
mov edx, dword [eax + 0x54]
mov edi, dword [esp + 0x40]
push ecx
push edx
lea eax, [esp + 0x64]
push edi
push eax
push ebp
call fcn.004b0ba0
mov ebx, eax
add esp, 0x14
test bx, bx
jne 0x4a8b61
mov byte [0x50ed84], 0
mov eax, dword [ebp]
cmp dword [eax + 0x10], 0xa
je 0x4a8699
mov ecx, dword [eax + 0xc]
cmp ecx, 5
jl 0x4a8699
test byte [esp + 0x13], 0x10
je 0x4a8677
push 5
push ebp
call fcn.004a99d0
mov ebx, eax
add esp, 8
test bx, bx
jne 0x4a8b61
mov eax, dword [ebp]
push 5
push 1
mov ecx, dword [eax + 0x58]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x18]
push ecx
add eax, edi
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
push ebp
call fcn.004a9d50
mov ebx, eax
add esp, 0x1c
test bx, bx
jne 0x4a8b61
mov eax, dword [ebp]
push 5
push 2
mov edx, dword [eax + 0x58]
mov ecx, dword [eax + 0x54]
push edx
mov edx, dword [eax + 0x18]
push ecx
lea ecx, [esp + 0x6c]
lea eax, [edi + edx*2]
push eax
push ecx
push ebp
call fcn.004a9d50
mov ebx, eax
add esp, 0x1c
test bx, bx
jne 0x4a8b61
jmp 0x4a8699
mov edx, dword [eax + 0x58]
mov eax, dword [eax + 0x54]
push edx
push eax
lea ecx, [esp + 0x64]
push edi
push ecx
push ebp
call fcn.004b1670
mov ebx, eax
add esp, 0x14
test bx, bx
jne 0x4a8b61
mov eax, dword [ebp]
cmp dword [eax + 0xc], 5
jl 0x4a86fb
mov ecx, dword [eax + 0x58]
lea edx, [esp + 0x5c]
push esi
push edx
mov edx, dword [eax + 0x54]
push ecx
push edx
push edi
call fcn.004b4800
mov eax, dword [ebp]
add esp, 0x14
cmp dword [eax + 0x10], 0xa
je 0x4a86fb
mov edx, dword [eax + 0x58]
lea ecx, [esp + 0x5c]
push esi
push ecx
mov ecx, dword [eax + 0x54]
push edx
mov edx, dword [eax + 0x18]
push ecx
add edx, edi
push edx
call fcn.004b4800
mov eax, dword [ebp]
lea ecx, [esp + 0x70]
push esi
push ecx
mov edx, dword [eax + 0x58]
mov ecx, dword [eax + 0x54]
push edx
mov edx, dword [eax + 0x18]
push ecx
lea eax, [edi + edx*2]
push eax
call fcn.004b4800
add esp, 0x28
mov eax, dword [ebp]
cmp dword [eax + 0xc], 5
jl 0x4a876e
test byte [esp + 0x13], 0x10
je 0x4a874c
push 5
push ebp
call fcn.004a99d0
mov ebx, eax
add esp, 8
test bx, bx
jne 0x4a8b61
mov eax, dword [ebp]
push 5
push 0
mov ecx, dword [eax + 0x58]
mov edx, dword [eax + 0x54]
push ecx
push edx
lea eax, [esp + 0x6c]
push edi
push eax
push ebp
call fcn.004a9d50
mov ebx, eax
add esp, 0x1c
test bx, bx
jne 0x4a8b61
jmp 0x4a876e
mov ecx, dword [eax + 0x58]
mov edx, dword [eax + 0x54]
push ecx
push edx
lea eax, [esp + 0x64]
push edi
push eax
push ebp
call fcn.004b1130
mov ebx, eax
add esp, 0x14
test bx, bx
jne 0x4a8b61
push ebp
call fcn.004a6700
mov eax, dword [ebp]
add esp, 4
cmp dword [eax + 0x10], 0xa
je 0x4a87fa
mov eax, dword [eax + 0xc]
cmp eax, 6
jl 0x4a87fa
push eax
push ebp
call fcn.004a99d0
mov ebx, eax
add esp, 8
test bx, bx
jne 0x4a8b61
mov eax, dword [ebp]
push 6
push 1
mov ecx, dword [eax + 0x58]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x18]
push ecx
add eax, edi
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
push ebp
call fcn.004a9d50
mov ebx, eax
add esp, 0x1c
test bx, bx
jne 0x4a8b61
mov eax, dword [ebp]
push 6
push 2
mov edx, dword [eax + 0x58]
mov ecx, dword [eax + 0x54]
push edx
mov edx, dword [eax + 0x18]
push ecx
lea ecx, [esp + 0x6c]
lea eax, [edi + edx*2]
push eax
push ecx
push ebp
call fcn.004a9d50
mov ebx, eax
add esp, 0x1c
test bx, bx
jne 0x4a8b61
mov eax, dword [ebp]
cmp dword [eax + 0xc], 6
jl 0x4a8860
mov esi, dword [esp + 0x44]
mov ecx, dword [eax + 0x58]
lea edx, [esp + 0x5c]
push esi
push edx
mov edx, dword [eax + 0x54]
push ecx
push edx
push edi
call fcn.004b4800
mov eax, dword [ebp]
add esp, 0x14
cmp dword [eax + 0x10], 0xa
je 0x4a8860
mov edx, dword [eax + 0x58]
lea ecx, [esp + 0x5c]
push esi
push ecx
mov ecx, dword [eax + 0x54]
push edx
mov edx, dword [eax + 0x18]
push ecx
add edx, edi
push edx
call fcn.004b4800
mov eax, dword [ebp]
lea ecx, [esp + 0x70]
push esi
push ecx
mov edx, dword [eax + 0x58]
mov ecx, dword [eax + 0x54]
push edx
mov edx, dword [eax + 0x18]
push ecx
lea eax, [edi + edx*2]
push eax
call fcn.004b4800
add esp, 0x28
mov ecx, dword [ebp]
mov eax, dword [ecx + 0xc]
cmp eax, 6
jl 0x4a88a9
push eax
push ebp
call fcn.004a99d0
mov ebx, eax
add esp, 8
test bx, bx
jne 0x4a8b61
mov eax, dword [ebp]
push 6
push 0
lea ecx, [esp + 0x64]
mov edx, dword [eax + 0x58]
mov eax, dword [eax + 0x54]
push edx
push eax
push edi
push ecx
push ebp
call fcn.004a9d50
mov ebx, eax
add esp, 0x1c
test bx, bx
jne 0x4a8b61
mov eax, dword [ebp]
mov cl, byte [eax + 0xa8]
test cl, cl
je 0x4a88d8
mov edx, dword [eax + 0x58]
mov eax, dword [eax + 0x54]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
push edi
push ebp
call fcn.004b0a50
mov ebx, eax
add esp, 0x14
test bx, bx
jne 0x4a8b61
mov eax, dword [ebp]
cmp dword [eax + 0x10], 0xb
jne 0x4a8907
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x58]
push edx
mov edx, dword [eax + 0x54]
push ecx
lea eax, [esp + 0x64]
push edx
push eax
push edi
push ebp
call fcn.004afe10
mov ebx, eax
add esp, 0x18
test bx, bx
jne 0x4a8b61
mov ecx, dword [ebp]
cmp dword [ecx + 0x10], 0xd
jne 0x4a89e1
mov edx, dword [esp + 0x98]
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x28], edx
lea edi, [eax + edx]
add eax, edi
mov dword [esp + 0x50], eax
mov al, byte [ecx + 0x14]
test al, 4
je 0x4a894f
mov ecx, dword [esp + 0x5e]
mov edx, dword [esp + 0x62]
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
jmp 0x4a895f
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x62]
mov esi, dword [esp + 0x5e]
sub eax, esi
cmp cx, dx
jge 0x4a89e1
movsx eax, ax
mov esi, dword [esp + 0x88]
mov dword [esp + 0x58], eax
movsx eax, dx
movsx ecx, cx
sub eax, ecx
mov dword [esp + 0x30], eax
movsx eax, word [esp + 0x80]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x64]
push ecx
push edi
push edx
push eax
push ebp
call fcn.004a8c80
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0xc0]
add edx, esi
add eax, esi
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x50]
add esp, 0x20
add edi, esi
add edx, ecx
dec eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], eax
jne 0x4a8980
test bx, bx
jne 0x4a8b61
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x4a8bc0
mov edx, dword [ebp]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x80]
test ax, ax
jle 0x4a8b61
mov ecx, dword [esp + 0x9c]
mov edi, dword [esp + 0x98]
movsx eax, ax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x9c], eax
mov dword [esp + 0x88], eax
jmp 0x4a8a49
mov edi, dword [esp + 0x8c]
mov edx, dword [esp + 0xd0]
mov esi, dword [esp + 0xac]
mov ecx, dword [esp + 0x80]
mov eax, edi
mov dx, word [edx]
cmp dx, si
je 0x4a8a7e
movsx eax, dx
movsx esi, si
sub esi, eax
mov eax, esi
imul eax, dword [esp + 0xa0]
add eax, edi
add edx, esi
mov esi, dword [esp + 0x80]
mov edi, eax
mov dword [esp + 0x30], esi
mov si, word [esp + 0xc4]
cmp dx, si
jge 0x4a8b21
movsx edx, dx
mov dword [esp + 0x28], edx
movsx edx, si
mov esi, dword [esp + 0x28]
sub edx, esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0xd0]
mov si, word [edx + 2]
cmp si, word [esp + 0x90]
jge 0x4a8afa
cmp si, word [esp + 0xb4]
jge 0x4a8ad8
add eax, dword [esp + 0x9c]
jmp 0x4a8aef
mov dl, byte [eax]
mov byte [ecx], dl
mov edx, dword [esp + 0x9c]
add eax, edx
movsx edx, word [esp + 0x84]
add ecx, edx
inc esi
cmp si, word [esp + 0x90]
jl 0x4a8ac5
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0xa0]
add ecx, edx
mov edx, dword [esp + 0x28]
add eax, edi
dec edx
mov edi, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
jne 0x4a8ab0
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x8c]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x80]
add esi, eax
mov eax, dword [esp + 0x88]
add edx, ecx
dec eax
mov dword [esp + 0x8c], esi
mov dword [esp + 0x80], edx
mov dword [esp + 0x88], eax
jne 0x4a8a42
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x4a8bc0
mov edx, dword [ebp]
mov ax, word [esp + 0x84]
mov esi, dword [esp + 0xd0]
mov word [edx + 0x1c], ax
mov ecx, dword [ebp]
mov edx, dword [esp + 0xb0]
mov ax, word [esp + 0xac]
mov dword [ecx + 0x18], edx
mov cx, word [esp + 0xb4]
mov dx, word [esp + 0xc4]
mov word [esi], ax
mov ax, word [esp + 0x90]
mov word [esi + 2], cx
mov word [esi + 4], dx
mov word [esi + 6], ax
jmp 0x4a8bc7
mov esi, dword [esp + 0xd0]
cmp byte [esp + 0x77], 1
jne 0x4a8beb
mov ecx, dword [ebp]
push ebp
mov word [ecx + 0x66], 0xffff
call fcn.004a9040
mov edx, dword [ebp]
add esp, 4
mov ebx, eax
mov word [edx + 0x64], 0
mov al, byte [esp + 0x56]
test al, al
je 0x4a8c03
mov eax, dword [esp + 0x98]
push eax
call fcn.004c84ce
add esp, 4
mov al, byte [esp + 0x3b]
test al, al
je 0x4a8c1b
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.004c84ce
add esp, 4
cmp byte [esp + 0x56], 1
je 0x4a8c29
cmp byte [esp + 0x3b], 1
jne 0x4a8c38
mov edx, dword [ebp]
mov ax, word [esp + 0x84]
mov word [edx + 0x1c], ax
mov al, byte [esp + 0x57]
test al, al
jne 0x4a8c53
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov ax, bx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret