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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x51d06c]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, ecx
mov dword [esp + 0x14], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x28]
push esi
mov esi, dword [eax + 8]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x5c], 0
mov byte [esp + 0x41], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x50], ecx
mov dword [esp + 0x44], esi
push edi
mov edi, dword [ebp + 0x2c]
mov dword [esp + 0x24], edi
test esi, esi
jne 0x478308
cmp dword [eax + 0x74], esi
jne 0x4782f7
test byte [ecx + 0x44], 8
jne 0x4782f7
mov byte [eax + 0x17], 1
mov ecx, eax
call fcn.00445680
mov edx, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x48], esi
test byte [edx + 0x24], 0x20
movsx eax, word [edx + 0x2a]
mov dword [esp + 0x2c], eax
jne 0x478328
mov dword [esp + 0x38], 0
mov dword [esp + 0x58], 1
jmp 0x478353
mov edx, dword [edx + 8]
mov dword [esp + 0x38], edx
test edx, edx
je 0x47834b
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x478343
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x478333
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], edx
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x58], ecx
xor ecx, ecx
mov dword [esp + 0x28], ecx
test eax, eax
jle 0x47857e
xor edx, edx
mov dword [esp + 0x14], edx
nop word [eax + eax]
mov eax, dword [esp + 0x1c]
movsx eax, word [eax + 0x28]
cmp ecx, eax
je 0x478566
test edi, edi
je 0x47838e
cmp dword [edi + ecx*4], 0
jl 0x478566
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov al, byte [edx + eax + 0xc]
movzx edx, al
test al, al
je 0x478566
mov ah, byte [ebp + 0x20]
cmp ah, 0xb
jne 0x4783d0
cmp al, ah
jne 0x4783d0
mov edi, 2
mov edx, dword [esp + 0x14]
lea eax, [edi - 1]
cmp eax, 3
ja case.default.0x4783c9
jmp dword [eax*4 + 0x4799f4]
cmp ah, 0xb
movzx edi, ah
cmove edi, edx
cmp edi, 5
jne 0x4783b9
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
cmp dword [edx + eax + 4], 0
mov eax, 2
cmove edi, eax
jmp 0x4783bd
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x1c]
mov byte [ecx + 0x15], 1
mov eax, dword [eax + 4]
jmp 0x478412
mov eax, dword [esp + 0x20]
push dword [edx + eax]
mov eax, dword [esp + 0x20]
push dword [eax]
push 0x512d5c
push dword [esp + 0x60]
call fcn.00428760
mov ecx, dword [ebp + 0x14]
mov edx, 0x44
mov dword [esp + 0x30], eax
inc ecx
mov eax, dword [esp + 0x38]
add eax, ecx
mov ecx, esi
push eax
push edi
push 0x513
call fcn.004458d0
mov ecx, dword [esi]
add esp, 0x1c
mov edx, dword [esp + 0x20]
cmp byte [ecx + 0x49], 0
je 0x478469
push edx
mov edx, 0xfffffff9
call fcn.00446480
add esp, 4
jmp 0x47847e
mov eax, dword [esi + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
mov byte [eax + ecx*4 - 0x13], 0xf9
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x88]
mov edi, dword [esp + 0x24]
test eax, eax
jle 0x478562
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x478562
mov eax, dword [ebp + 0x14]
mov edx, 0x32
push dword [ebp + 0x24]
inc eax
add eax, ecx
mov ecx, esi
push eax
call fcn.00445a20
add esp, 8
jmp 0x47855e
mov edi, dword [ebp + 0x14]
mov edx, 0x33
inc edi
add edi, ecx
mov ecx, esi
push edi
call fcn.004459b0
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov edx, dword [eax + edx + 4]
test edx, edx
je 0x478507
cmp byte [edx], 0xa4
jne 0x478507
mov eax, dword [esp + 0xc]
push edi
push dword [edx + 0x1c]
mov edx, 0x4e
mov ecx, dword [eax + 8]
jmp 0x47852a
mov ecx, dword [esp + 0xc]
push edi
call fcn.0045fbd0
add esp, 4
cmp eax, edi
je 0x478532
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x478532
push edi
push eax
mov edx, 0x4f
call fcn.00445a20
add esp, 8
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x88]
test ecx, ecx
jns 0x478543
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x478552
mov eax, 0x52100c
jmp 0x47855b
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x14], 0x10
inc ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x2c]
jl 0x478370
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x2c], edx
test edx, edx
je 0x478803
mov eax, dword [esp + 0x54]
test dword [eax + 0x1c], 0x200
jne 0x478803
mov ecx, dword [esp + 0xc]
mov eax, dword [ebp + 0x14]
not eax
mov dword [ecx + 0x38], eax
mov al, byte [ebp + 0x20]
cmp al, 0xb
je 0x4785be
movzx eax, al
mov dword [esp + 0x30], eax
jmp 0x4785c6
mov dword [esp + 0x30], 2
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [edx], ecx
jle 0x4787f8
lea eax, [edx + 8]
mov dword [esp + 0x18], 3
mov dword [esp + 0x40], eax
mov eax, dword [eax - 4]
mov dword [esp + 0x5c], eax
test edi, edi
je 0x478650
mov dword [esp + 0x98], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movq qword [esp + 0x90], xmm0
mov dword [esp + 0x84], 0x478220
mov dword [esp + 0x98], edi
test eax, eax
je 0x478639
mov edx, eax
lea ecx, [esp + 0x80]
call fcn.00458220
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
cmp byte [ebp + 0x1c], 0
mov al, byte [esp + 0x94]
jne 0x478648
and al, 0xfd
test al, al
je 0x4787e0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x34], ecx
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 1]
mov dword [ecx + 0x3c], eax
lea eax, [edi - 1]
test edi, eax
jne 0x478685
mov edx, dword [ecx + 0x40]
lea eax, [edi*8 + 4]
mov ecx, dword [ecx]
push 0
push eax
call fcn.004266f0
mov ecx, dword [esp + 0x3c]
add esp, 8
mov dword [ecx + 0x40], eax
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x478693
mov dword [eax + edi*4], 0xffffffff
push 0x10
not edi
push edi
push dword [esp + 0x64]
push dword [esp + 0x18]
call fcn.004612b0
mov edx, dword [esp + 0x40]
add esp, 0x10
cmp edx, 4
jne 0x478714
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x4786da
push 0
push dword [ebp + 0x24]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.00445890
add esp, 0xc
jmp 0x4787b9
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4787b9
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx]
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x47872c
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0xc]
cmp edx, 5
mov eax, 2
cmove edx, eax
mov dword [esp + 0x30], edx
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x47876c
cmp dword [ecx + 0x74], eax
jne 0x47875b
mov eax, dword [ecx]
test byte [eax + 0x44], 8
jne 0x47875b
mov byte [ecx + 0x17], 1
call fcn.00445680
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], eax
cmp edx, 2
jne 0x47877d
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esp + 0x20]
push 0
push dword [esp + 0x2c]
push 0
push edx
push 0x113
mov edx, 0x45
call fcn.00445cd0
mov eax, dword [esp + 0x34]
add esp, 0x14
mov ecx, dword [eax + 0x88]
test ecx, ecx
jle 0x4787b9
mov eax, dword [eax + 0x58]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x18]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4787d8
lea eax, [edi*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
inc ecx
add eax, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], eax
cmp ecx, dword [edx]
jl 0x4785e3
mov eax, dword [esp + 0xc]
mov dword [eax + 0x38], 0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x478890
cmp dword [eax], 0
jne 0x478822
mov byte [ebp + 0x20], 4
mov dword [esp + 0x50], 0
jmp 0x478890
mov eax, dword [eax + 0x10]
mov dword [esp + 0x60], eax
test eax, eax
je 0x478890
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x64], edx
cmp dword [eax + 0x30], edx
jg 0x47885a
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.00445890
add esp, 0xc
mov dword [esp + 0x64], eax
jmp 0x478890
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [ebp + 0x1c], 0
mov dword [esp + 0x78], 0x35
je 0x478c7e
cmp dword [esp + 0x38], 0
jne 0x478c7e
mov edi, dword [esi + 0xc]
mov edx, dword [edi + 0x3c]
mov dword [esp + 0x14], edx
lea eax, [edx + 1]
mov dword [edi + 0x3c], eax
lea eax, [edx - 1]
test edx, eax
jne 0x4788e2
mov ecx, dword [edi]
lea eax, [edx*8 + 4]
mov edx, dword [edi + 0x40]
push 0
push eax
call fcn.004266f0
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x40]
test eax, eax
je 0x4788f0
mov dword [eax + edx*4], 0xffffffff
cmp byte [ebp + 0x20], 0xb
not edx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
movzx eax, byte [ecx + 0x30]
je 0x47890a
movzx eax, byte [ebp + 0x20]
jmp 0x478915
cmp eax, 0xb
mov edi, 2
cmove eax, edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x20], eax
test edi, edi
je 0x47893c
cmp dword [edi + 0x10], 0
jne 0x47893c
xor eax, eax
cmp dword [edi + 8], eax
setne al
lea eax, [eax*2 + 4]
mov dword [esp + 0x20], eax
jmp 0x47895f
cmp eax, 5
jne 0x47895f
cmp byte [ebp + 0x20], al
je 0x47895f
cmp dword [ecx + 8], 0
je 0x47895f
lea edx, [eax + 6]
mov ecx, esi
call fcn.00445940
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x6c], eax
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x4789db
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x47898d
push edi
push edx
push dword [ebp + 0x14]
mov edx, 0x35
mov ecx, esi
call fcn.00445890
mov edi, dword [ebp + 0x14]
add esp, 0xc
jmp 0x4789bd
mov edi, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x88]
mov edx, dword [esp + 0x14]
test eax, eax
jle 0x4789de
lea ecx, [eax + eax*4]
mov edi, 0x90
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], di
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x478a04
push dword [ebp + 0x14]
mov ecx, esi
push edx
push dword [ebp + 0xc]
mov edx, 0x1f
call fcn.00445890
add esp, 0xc
jmp 0x478a35
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [ebp + 0xc]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x1f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [esp + 0x20]
lea eax, [edi - 1]
cmp eax, 5
ja case.default.0x478a45
jmp dword [eax*4 + 0x479a04]
mov eax, dword [esp + 0x54]
xor edi, edi
test dword [eax + 0x1c], 0x2000
je 0x478aa4
mov ecx, dword [esp + 0xc]
xor edx, edx
mov eax, dword [ecx]
test dword [eax + 0x1c], 0x40000
je 0x478a77
mov edx, dword [esp + 0x1c]
call fcn.0048a9e0
mov edx, eax
mov ecx, edx
test edx, edx
je 0x478a93
nop dword [eax]
cmp byte [ecx + 8], 0x75
jne 0x478a8c
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x478a80
xor eax, eax
test edi, edi
cmovne eax, edx
mov dword [esp + 0x4c], eax
mov edi, eax
test eax, eax
jne 0x478af8
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push 0
push 0
call fcn.00475c00
add esp, 8
test eax, eax
jne 0x478af8
mov edx, dword [esp + 0x1c]
cmp dword [edx + 8], eax
je 0x478b2c
mov edi, dword [esp + 0xc]
mov ecx, edi
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov eax, dword [edi + 0x74]
test eax, eax
push dword [ebp + 0xc]
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov ecx, edi
call fcn.0046fe00
add esp, 0x10
mov dword [esp + 0x4c], 1
jmp 0x478bc3
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push 1
mov eax, dword [ecx + 0x74]
test eax, eax
push 5
push 0
push 1
push dword [ebp + 0x14]
cmovne ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, dword [esp + 0x2c]
push edi
call fcn.0046f9a0
add esp, 0x24
mov dword [esp + 0x4c], 1
jmp 0x478bc3
push dword [ebp + 0xc]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
push 0
push dword [esp + 0x24]
call fcn.0048ed40
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, esi
call fcn.00445a90
jmp 0x478bc3
mov edi, 2
mov edx, dword [esp + 0x1c]
movzx eax, word [edx + 0x28]
test ax, ax
js 0x478b97
movsx ecx, ax
mov eax, dword [edx + 4]
add ecx, ecx
push dword [eax + ecx*8]
mov eax, dword [esp + 0x10]
push dword [edx]
push 0x512d5c
push dword [eax]
call fcn.00428760
add esp, 0x10
mov edx, 0x613
jmp 0x478bb1
push dword [edx]
mov eax, dword [esp + 0x10]
push 0x513610
push dword [eax]
call fcn.00428760
add esp, 0xc
mov edx, 0xa13
mov ecx, dword [esp + 0xc]
push 2
push 0xfffffffffffffff9
push eax
push edi
call fcn.0046d7c0
add esp, 0x10
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x478be2
mov eax, dword [esp + 0x14]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x478c7e
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x70], ecx
cmp dword [eax + 0x30], ecx
jg 0x478c1b
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.00445890
add esp, 0xc
mov dword [esp + 0x70], eax
jmp 0x478c51
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
lea ecx, [edi - 1]
mov edx, dword [esi + 0x88]
cmp byte [eax + 0x49], 0
je 0x478c69
mov eax, 0x521014
jmp 0x478c7c
test ecx, ecx
mov eax, edx
cmovns eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
lea eax, [eax + ecx*4]
add eax, 0xfffffff4
mov dword [eax], edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
test eax, eax
je 0x479941
mov edx, dword [esp + 0x3c]
xor ecx, ecx
nop
cmp dword [edx + ecx*4], 0
je 0x47992d
mov edi, dword [esi + 0xc]
cmp dword [esp + 0x60], eax
jne 0x478d53
mov eax, dword [esp + 0x64]
mov ecx, dword [esi + 0x88]
inc eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x68], ecx
cmp dword [edi + 0x30], ecx
jg 0x478cea
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.00445890
add esp, 0xc
mov dword [esp + 0x68], eax
jmp 0x478d20
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x88]
cmp byte [eax + 0x49], 0
je 0x478d38
mov eax, 0x52100c
mov dword [eax + 8], edx
jmp 0x478d99
mov ecx, dword [esp + 0x64]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x478d99
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x24], ecx
lea eax, [ecx + 1]
mov dword [edi + 0x3c], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x478d85
mov edx, dword [edi + 0x40]
lea eax, [ecx*8 + 4]
mov ecx, dword [edi]
push 0
push eax
call fcn.004266f0
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x40]
test eax, eax
je 0x478d93
mov dword [eax + ecx*4], 0xffffffff
not ecx
mov dword [esp + 0x24], ecx
cmp byte [esp + 0x45], 0
jne 0x478dc6
mov eax, dword [esp + 0x60]
test eax, eax
je 0x478dae
cmp eax, dword [esp + 0x10]
jne 0x478dc6
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov edx, dword [esp + 0x1c]
inc eax
push eax
call fcn.004768d0
add esp, 4
mov byte [esp + 0x45], 1
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp dword [edi + 0x24], 0
je 0x478ea4
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + ecx*4]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x478e03
push 0
push edx
push 0
mov edx, 0x49
mov ecx, esi
call fcn.00445890
add esp, 0xc
jmp 0x478e39
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x49
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0xc]
mov eax, dword [ebp + 0x14]
not eax
mov dword [ecx + 0x38], eax
mov edx, dword [edi + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
test edx, edx
je 0x478e6c
push 0
push 0
mov ecx, eax
call fcn.0045bf40
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x28]
add esp, 8
jmp 0x478e6e
xor edi, edi
cmp byte [eax + 0x49], 0
jne 0x478e88
push 0x10
push dword [esp + 0x28]
push edi
push ecx
call fcn.004616d0
mov eax, dword [esp + 0x30]
add esp, 0x10
test edi, edi
je 0x478e95
mov edx, edi
mov ecx, eax
call fcn.0045bd50
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x38], 0
mov eax, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x34], edi
mov edx, dword [eax + ecx*4]
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
movzx eax, word [eax + 0x34]
mov ecx, eax
cmp di, ax
jae 0x479014
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
jmp 0x478ee4
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
movsx edx, word [eax + edi*2]
cmp edx, 0xfffffffe
jne 0x478f67
mov edi, dword [esp + 0xc]
mov eax, dword [ebp + 0x14]
not eax
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + ecx + 4]
mov eax, dword [edi]
mov dword [esp + 0x2c], eax
test edx, edx
je 0x478f2b
push 0
push 0
mov ecx, eax
call fcn.0045bf40
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x2c]
jmp 0x478f2d
xor edi, edi
cmp byte [eax + 0x49], 0
jne 0x478f4a
mov ecx, dword [esp + 0x30]
mov edx, edi
push ecx
mov ecx, dword [esp + 0x10]
call fcn.00460f00
mov eax, dword [esp + 0x30]
add esp, 4
test edi, edi
je 0x478f57
mov edx, edi
mov ecx, eax
call fcn.0045bd50
mov eax, dword [esp + 0xc]
mov dword [eax + 0x38], 0
jmp 0x478fe7
cmp edx, 0xffffffff
je 0x478f80
mov eax, dword [esp + 0x1c]
movsx eax, word [eax + 0x28]
cmp edx, eax
je 0x478f80
mov edi, dword [ebp + 0x14]
inc edi
add edi, edx
jmp 0x478f83
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
sar edx, 0x1f
and edx, 1
add edx, 0x4f
cmp dword [eax + 0x30], ecx
jg 0x478fae
mov ecx, dword [esp + 0x30]
push 0
push ecx
push edi
mov ecx, esi
call fcn.00445890
add esp, 0xc
jmp 0x478fe7
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov byte [eax + ecx*4], dl
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], 0
lea eax, [eax + ecx*4]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov word [eax + 2], cx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov byte [eax + 1], 0
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x40]
add dword [esp + 0x20], 0x18
inc edi
inc dword [esp + 0x30]
movzx ecx, word [eax + 0x34]
mov dword [esp + 0x40], edi
cmp edi, ecx
jl 0x478ee0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov edx, dword [edx + eax*4]
mov eax, dword [esi + 0xc]
movzx edi, cx
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x47903c
push edx
push edi
push dword [esp + 0x1c]
mov edx, 0x66
mov ecx, esi
call fcn.00445890
add esp, 0xc
jmp 0x47906e
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x66
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp + 0x18], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
je 0x4790b2
cmp edx, ecx
jne 0x4790b2
cmp byte [ebp + 0x1c], 0
jne 0x4790b2
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x479925
mov eax, dword [esp + 0x24]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
jmp 0x479925
movzx eax, byte [ecx + 0x36]
test eax, eax
jne 0x4790e6
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x479925
mov eax, dword [esp + 0x24]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
jmp 0x479925
cmp byte [ebp + 0x20], 0xb
je 0x4790f2
movzx eax, byte [ebp + 0x20]
jmp 0x4790fd
cmp eax, 0xb
mov edi, 2
cmove eax, edi
mov dword [esp + 0x20], eax
cmp dword [esp + 0x60], ecx
jne 0x47911e
mov edi, dword [esp + 0x50]
xor eax, eax
cmp dword [edi + 8], eax
setne al
lea eax, [eax*2 + 4]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x18], 0
jne 0x4791ee
cmp dword [ecx + 0x14], 0
jne 0x4791ee
cmp edx, ecx
jne 0x4791ee
cmp eax, 5
jne 0x4791ee
mov eax, dword [esp + 0x54]
test dword [eax + 0x1c], 0x2000
je 0x479197
mov ecx, dword [esp + 0xc]
xor edi, edi
xor edx, edx
mov eax, dword [ecx]
test dword [eax + 0x1c], 0x40000
je 0x47916f
mov edx, dword [esp + 0x1c]
call fcn.0048a9e0
mov edx, eax
mov ecx, edx
test edx, edx
je 0x479188
cmp byte [ecx + 8], 0x75
jne 0x479181
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x479175
xor eax, eax
test edi, edi
cmovne eax, edx
test eax, eax
jne 0x4791ee
mov eax, dword [esp + 0x54]
test dword [eax + 0x1c], 0x4000
je 0x4791c2
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x10], 0
jne 0x4791ee
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
push 0
call fcn.0042aa50
add esp, 4
cmp dword [eax + 8], 0
jne 0x4791ee
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x479925
mov eax, dword [esp + 0x24]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
jmp 0x479925
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x34], edx
movzx edi, word [eax + 0x32]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x5c], edi
cmp dword [eax + 0x30], edx
jg 0x47922f
push dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, 0x1b
push dword [esp + 0x28]
add eax, dword [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00445890
add esp, 0xc
mov edx, eax
jmp 0x479274
mov edi, dword [esp + 0x18]
lea eax, [edx + 1]
add edi, dword [ebp + 0x10]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x5c]
mov dword [eax + ecx*4], 0x1b
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
jne 0x47928b
mov eax, dword [esi + 0x58]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edi
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x38]
jne 0x47929f
mov edi, dword [esp + 0x14]
mov dword [esp + 0x28], edi
jmp 0x4792fd
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xc]
cmp eax, 1
jne 0x4792cc
mov al, byte [edx + 0x13]
test al, al
jne 0x4792bb
inc dword [edx + 0x2c]
mov edi, dword [edx + 0x2c]
jmp 0x4792f5
dec al
mov byte [edx + 0x13], al
movzx eax, al
mov edi, dword [edx + eax*4 + 0x90]
jmp 0x4792f5
mov ecx, dword [edx + 0x1c]
mov edi, dword [edx + 0x20]
mov dword [esp + 0x28], edi
cmp eax, ecx
jg 0x4792e8
add eax, edi
sub ecx, dword [esp + 0x58]
mov dword [edx + 0x20], eax
mov dword [edx + 0x1c], ecx
jmp 0x4792f9
mov eax, dword [edx + 0x2c]
lea edi, [eax + 1]
add eax, dword [esp + 0x58]
mov dword [edx + 0x2c], eax
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x10]
cmp dword [ebp + 0x18], 0
jne 0x47930e
cmp dword [esp + 0x20], 5
jne 0x479693
mov eax, dword [esp + 0x1c]
test byte [eax + 0x24], 0x20
jne 0x479407
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x479346
mov eax, dword [esp + 0x18]
mov edx, 0x88
add eax, dword [ebp + 0x10]
mov ecx, esi
push 0
push edi
push eax
call fcn.00445890
add esp, 0xc
jmp 0x479383
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
add edx, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edi, dword [esp + 0x28]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x88
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x479693
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x4793b3
push edx
push dword [esp + 0x28]
mov edx, 0x35
mov ecx, esi
push edi
call fcn.00445890
add esp, 0xc
jmp 0x4793e4
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x479693
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x479693
mov edi, dword [esp + 0x38]
cmp edx, edi
je 0x4794fe
mov eax, dword [esp + 0x38]
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x40], edi
cmp cx, word [eax + 0x32]
jae 0x4794fa
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
movzx edx, word [edx + 0x34]
xor ecx, ecx
test edx, edx
je 0x47945d
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
movzx edi, word [eax + edi*2]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
nop dword [eax]
cmp di, word [eax]
je 0x479494
inc ecx
add eax, 2
cmp ecx, edx
jl 0x479450
or eax, 0xffffffff
mov ecx, dword [esi + 0x88]
movsx edx, ax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x34], edx
cmp dword [eax + 0x30], ecx
jg 0x479499
mov edi, dword [esp + 0x2c]
mov ecx, esi
mov eax, dword [esp + 0x18]
add eax, dword [ebp + 0x10]
push edi
push edx
push eax
mov edx, 0x5a
call fcn.00445890
add esp, 0xc
jmp 0x4794d6
movzx eax, cx
jmp 0x479460
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
add edi, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x5a
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x38]
inc edi
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x2c], edi
mov edi, ecx
movzx eax, word [eax + 0x32]
mov dword [esp + 0x40], ecx
cmp ecx, eax
jl 0x479431
mov edi, dword [esp + 0x38]
cmp dword [ebp + 0x18], 0
je 0x479693
movzx ecx, word [edi + 0x32]
mov eax, dword [esi + 0x88]
add eax, ecx
mov dword [esp + 0x40], 0x34
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x28]
and al, 3
cmp al, 2
cmove edx, dword [esp + 0x14]
mov dword [esp + 0x7c], edx
xor edx, edx
mov dword [esp + 0x30], edx
test ecx, ecx
je 0x479693
mov eax, dword [edi + 0x20]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], edx
mov ecx, dword [eax]
mov al, byte [ecx + 0x46]
mov byte [esp + 0x46], al
mov al, byte [ecx + 0x9d]
mov byte [esp + 0x47], al
movzx eax, al
push eax
push edx
mov dl, byte [esp + 0x4e]
call fcn.0046e590
add esp, 8
mov edi, eax
cmp byte [esp + 0x47], 0
jne 0x47959e
test edi, edi
je 0x479587
cmp dword [edi + 0xc], 0
jne 0x47959e
push dword [esp + 0x34]
mov dl, byte [esp + 0x4a]
mov ecx, dword [esp + 0x10]
push edi
call fcn.0046e310
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 4]
movsx edx, word [eax + ecx*2]
mov eax, dword [esp + 0x38]
movzx ecx, word [eax + 0x32]
mov eax, dword [esp + 0x40]
dec ecx
cmp dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x18]
cmove eax, dword [esp + 0x78]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
cmovne eax, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x2c], eax
add ecx, edx
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x7c]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x5c], ecx
cmp dword [eax + 0x30], edx
jg 0x479613
push dword [esp + 0x34]
mov edx, dword [esp + 0x44]
push dword [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00445890
add esp, 0xc
mov edx, eax
jmp 0x479653
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x40]
mov byte [eax], cl
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
push 0xfffffffffffffffe
push edi
mov ecx, esi
call fcn.004466e0
mov eax, dword [esi + 0x88]
add esp, 8
test eax, eax
jle 0x47967a
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
inc edx
mov dword [esp + 0x30], edx
movzx eax, word [edi + 0x32]
cmp edx, eax
jl 0x479542
mov edi, dword [esp + 0x20]
lea eax, [edi - 1]
cmp eax, 5
ja case.0x4796a3.5
jmp dword [eax*4 + 0x479a1c]
push dword [esp + 0x10]
mov edx, edi
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.0046d840
add esp, 4
jmp 0x47982d
mov eax, dword [esp + 0x18]
add eax, dword [ebp + 0x10]
mov edi, dword [esp + 0xc]
mov ecx, edi
mov edx, dword [esp + 0x50]
push eax
push dword [esp + 0x14]
push dword [esp + 0x24]
call fcn.0048ed40
add esp, 0xc
jmp 0x4796eb
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x479714
push 0
push dword [ebp + 0x24]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.00445890
add esp, 0xc
jmp 0x47982d
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x47982d
mov eax, dword [esp + 0x54]
xor edi, edi
test dword [eax + 0x1c], 0x2000
je 0x4797a4
mov ecx, dword [esp + 0xc]
xor edx, edx
mov eax, dword [ecx]
test dword [eax + 0x1c], 0x40000
je 0x479779
mov edx, dword [esp + 0x1c]
call fcn.0048a9e0
mov edx, eax
mov ecx, edx
test edx, edx
je 0x479793
nop
cmp byte [ecx + 8], 0x75
jne 0x47978c
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x479780
xor ecx, ecx
test edi, edi
cmovne ecx, edx
mov dword [esp + 0x34], ecx
mov edi, ecx
test ecx, ecx
jne 0x4797d9
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test dword [eax + 0x1c], 0x4000
je 0x4797e9
mov eax, dword [esp + 0x1c]
push 0
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
call fcn.0042aa50
add esp, 4
cmp dword [eax + 8], 0
jne 0x4797d9
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x10], 0
je 0x4797e9
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
add eax, edx
push eax
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x14], eax
sete al
movzx eax, al
push eax
push 5
push 0
push dword [esp + 0x68]
push dword [esp + 0x3c]
push edx
push dword [ebp + 0xc]
mov edx, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x30]
mov ecx, edi
call fcn.0046f9a0
add esp, 0x24
mov dword [esp + 0x4c], 1
mov ecx, dword [esp + 0x60]
mov eax, dword [esi + 0xc]
cmp ecx, dword [esp + 0x10]
jne 0x4798cd
mov edx, dword [esp + 0x64]
mov ecx, dword [esi + 0x88]
inc edx
cmp dword [eax + 0x30], ecx
jg 0x479864
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.00445890
add esp, 0xc
jmp 0x47989a
mov edi, dword [esp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x88]
cmp byte [eax + 0x49], 0
je 0x4798b2
mov eax, 0x52100c
mov dword [eax + 8], edx
jmp 0x4798e9
mov ecx, dword [esp + 0x68]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x4798e9
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4798e9
mov eax, dword [esp + 0x24]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x14]
je 0x479925
mov eax, dword [esp + 0x58]
cmp eax, 1
jne 0x47991a
test ecx, ecx
je 0x479925
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x479925
movzx eax, al
mov dword [edi + eax*4 + 0x90], ecx
inc byte [edi + 0x13]
jmp 0x479925
cmp eax, dword [edi + 0x1c]
jle 0x479925
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
inc ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x478ca0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4799d3
mov ecx, dword [esi + 0x88]
lea edi, [eax + 1]
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x479974
push 0
push edi
push 0
mov edx, 0xb
mov ecx, esi
call fcn.00445890
add esp, 0xc
jmp 0x4799a6
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x88]
cmp byte [eax + 0x49], 0
je 0x4799bb
mov eax, 0x52100c
jmp 0x4799d0
mov ecx, dword [esp + 0x70]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x4c]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret