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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x51d06c]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, ecx
mov byte [esp + 0x17], 0
push ebx
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
push esi
push edi
mov edi, dword [eax + 8]
mov esi, edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x60], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x34], edi
mov dword [esp + 0x64], ecx
cmp dword [eax + 0x30], ecx
jg 0x497474
push 0
push 0
push 0
mov edx, 0x11
mov ecx, edi
call fcn.00445890
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x64], eax
jmp 0x4974aa
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x11
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 [edx + 0x10]
xor ecx, ecx
mov esi, dword [esi + 0x14]
xorps xmm0, xmm0
mov ebx, dword [ebx + 0x40]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], ebx
movlpd qword [esp + 0x48], xmm0
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
shl eax, 4
add eax, esi
mov dword [esp + 0x24], eax
cmp esi, eax
jae 0x4976b6
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x40]
mov ebx, dword [esi]
mov eax, dword [eax]
or eax, dword [edi + 4]
mov edi, dword [esp + 0x34]
jne 0x497573
test byte [esi + 0xa], 2
jne 0x497573
test byte [ebx + 4], 1
jne 0x497573
mov eax, dword [edx + 0x2c]
lea ecx, [esp + 0x68]
mov edx, ebx
mov byte [esp + 0x7c], 3
mov dword [esp + 0x6c], fcn.0045cf40
mov dword [esp + 0x70], 0x45cee0
mov dword [esp + 0x80], eax
call fcn.00458220
cmp byte [esp + 0x7c], 0
je 0x49756b
mov edx, ebx
mov ebx, dword [esp + 0x1c]
push 0
push 0
mov ecx, dword [ebx]
call fcn.0045bf40
mov edx, dword [esp + 0x58]
mov ecx, dword [ebx]
push eax
call fcn.0045b970
add esp, 0xc
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
cmp eax, dword [edx + 0x2c]
jne 0x49769f
movzx ecx, word [esi + 0xc]
test cl, 0x82
je 0x49769b
test byte [edx + 0x24], 8
je 0x4975a2
mov eax, dword [esi]
test byte [eax + 4], 1
jne 0x4975a2
test cl, cl
js 0x49769b
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x49769b
mov ecx, dword [esi + 0x1c]
test ecx, ecx
js 0x49769b
mov eax, dword [edx + 0x10]
add ecx, ecx
mov eax, dword [eax + 4]
mov dl, byte [eax + ecx*8 + 0xd]
mov ecx, dword [esi]
call fcn.0045aca0
test eax, eax
je 0x497697
mov edx, dword [esi + 0x1c]
xor ebx, ebx
cmp edx, 0x40
jl 0x4975f0
mov dword [esp + 0x38], 0x80000000
jmp 0x497609
mov eax, edx
xor ecx, ecx
bts ebx, eax
cmp eax, 0x20
cmovae ecx, ebx
xor ebx, ecx
cmp eax, 0x40
cmovae ecx, ebx
mov dword [esp + 0x38], ecx
cmp byte [esp + 0x23], 0
jne 0x497635
mov ecx, dword [esp + 0x58]
add edx, edx
mov eax, dword [ecx + 4]
push dword [eax + edx*8]
push dword [ecx]
push 0x5150b4
push 0x11c
call fcn.00428aa0
add esp, 0x10
mov byte [esp + 0x23], 1
mov eax, dword [esp + 0x38]
mov ecx, ebx
and ecx, dword [esp + 0x3c]
and eax, dword [esp + 0x14]
or ecx, eax
jne 0x497697
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
inc eax
mov dword [esp + 0xc], eax
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
call fcn.00498370
add esp, 4
test eax, eax
jne 0x497fba
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
or dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [eax + 0x30]
or ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [eax + ecx*4], esi
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
jmp 0x4976a3
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
add esi, 0x30
cmp esi, dword [esp + 0x24]
jb 0x4974f5
mov esi, dword [esp + 0x3c]
jmp 0x4976be
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
movzx eax, cx
not ebx
mov ecx, dword [esp + 0x40]
or ebx, 0x80000000
not esi
mov word [ecx + 0x28], ax
mov word [ecx + 0x18], ax
mov eax, dword [esp + 0x58]
mov dword [ecx + 0x24], 0x4241
mov ecx, dword [edx + 0x38]
and esi, ecx
and ebx, dword [edx + 0x3c]
mov dword [esp + 0x3c], esi
mov esi, 0x3f
mov dword [esp + 0x14], ebx
movzx ebx, word [eax + 0x2a]
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], ebx
movzx eax, bx
cmp si, bx
jge 0x497711
mov dword [esp + 0x38], esi
jmp 0x49771f
movsx esi, bx
mov dword [esp + 0x38], esi
xor esi, esi
cmp si, ax
jge 0x49776a
mov edi, dword [esp + 0x38]
xor esi, esi
mov ebx, dword [esp + 0x14]
nop dword [eax]
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x3c]
and ecx, ebx
or edx, ecx
je 0x497755
inc dword [esp + 0x10]
inc esi
cmp esi, edi
jl 0x497730
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x3c], 0
jg 0x497786
jl 0x497776
test ecx, ecx
jae 0x497786
mov ecx, dword [esp + 0x10]
movsx eax, bx
add ecx, 0xffffffc1
add ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc eax
movzx eax, ax
movsx esi, ax
mov dword [esp + 0x54], eax
mov ecx, dword [ecx]
lea edx, [esi*4 + 7]
and edx, 0xfffffff8
lea eax, [esi*4 + 9]
add eax, esi
mov dword [esp + 0x30], edx
and eax, 0xfffffff8
add edx, 0x48
add eax, edx
mov dword [esp + 0xc], eax
cdq
push edx
push eax
test ecx, ecx
je 0x4977d2
call fcn.00426530
mov ebx, eax
mov dword [esp + 0x30], ebx
jmp 0x4977dd
call fcn.00425f90
mov ebx, eax
mov dword [esp + 0x30], eax
add esp, 8
test ebx, ebx
je 0x497fba
push dword [esp + 0xc]
push 0
push ebx
call fcn.004b1910
lea eax, [ebx + 0x48]
add esp, 0xc
mov dword [ebx + 0x20], eax
xorps xmm0, xmm0
add eax, dword [esp + 0x30]
mov dword [ebx + 8], eax
movlpd qword [esp + 0x48], xmm0
lea eax, [eax + esi*2]
add eax, 2
mov dword [ebx + 4], eax
lea eax, [eax + esi*2]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x54]
mov word [ebx + 0x34], ax
dec eax
mov word [ebx + 0x32], ax
mov eax, dword [esp + 0x40]
mov dword [eax + 0x20], ebx
mov eax, dword [esp + 0x58]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx], 0x5150d0
xor ebx, ebx
mov esi, dword [eax + 0x14]
mov dword [esp + 0x54], esi
cmp esi, dword [esp + 0x24]
jae 0x49798d
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], eax
nop dword [eax]
mov eax, dword [esi + 0x14]
cmp eax, dword [edx + 0x2c]
jne 0x497978
movzx ecx, word [esi + 0xc]
test cl, 0x82
je 0x497978
test byte [edx + 0x24], 8
je 0x49789f
mov eax, dword [esi]
test byte [eax + 4], 1
jne 0x49789f
test cl, cl
js 0x497978
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x497978
mov ecx, dword [esi + 0x1c]
test ecx, ecx
js 0x497978
mov eax, dword [edx + 0x10]
add ecx, ecx
mov eax, dword [eax + 4]
mov dl, byte [eax + ecx*8 + 0xd]
mov ecx, dword [esi]
call fcn.0045aca0
test eax, eax
je 0x497974
mov eax, dword [esi + 0x1c]
xor edx, edx
mov dword [esp + 0x48], eax
cmp eax, 0x40
jl 0x4978ee
mov esi, 0x80000000
jmp 0x497901
xor esi, esi
bts edx, eax
cmp eax, 0x20
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
cmovae esi, edx
mov ecx, edx
mov eax, esi
and ecx, dword [esp + 0x30]
and eax, dword [esp + 0xc]
or ecx, eax
jne 0x497970
mov ecx, dword [esp + 0x54]
mov eax, dword [edi + 4]
or dword [esp + 0x30], edx
mov edx, dword [esp + 0x48]
mov ecx, dword [ecx]
or dword [esp + 0xc], esi
mov word [eax + ebx*2], dx
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x10]
test dword [edx + 4], 0x100
jne 0x497955
test esi, esi
je 0x497946
test dword [esi + 4], 0x100
jne 0x497953
mov ecx, dword [esp + 0x1c]
call fcn.0045aaf0
test eax, eax
jne 0x497967
mov edx, esi
mov ecx, dword [esp + 0x1c]
call fcn.0045aaf0
mov ecx, 0x50bca0
test eax, eax
je 0x497969
mov ecx, dword [eax]
mov eax, dword [edi + 0x20]
mov dword [eax + ebx*4], ecx
inc ebx
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x18]
add esi, 0x30
mov dword [esp + 0x54], esi
cmp esi, dword [esp + 0x24]
jb 0x497870
mov edi, dword [esp + 0x34]
xor esi, esi
cmp dword [esp + 0x38], esi
jle 0x4979e0
mov edi, dword [esp + 0x28]
nop dword [eax]
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x3c]
and ecx, dword [esp + 0x14]
or edx, ecx
je 0x4979d5
mov eax, dword [edi + 4]
mov word [eax + ebx*2], si
mov eax, dword [edi + 0x20]
mov dword [eax + ebx*4], 0x50bca0
inc ebx
inc esi
cmp esi, dword [esp + 0x38]
jl 0x4979a0
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x3c], 0
jg 0x497a24
jl 0x4979f2
cmp dword [eax + 0x38], 0
jae 0x497a24
mov esi, dword [esp + 0x58]
mov eax, 0x3f
mov edx, dword [esp + 0x28]
cmp ax, word [esi + 0x2a]
jge 0x497a28
mov ecx, eax
mov eax, dword [edx + 4]
mov word [eax + ebx*2], cx
inc ecx
mov eax, dword [edx + 0x20]
mov dword [eax + ebx*4], 0x50bca0
inc ebx
movsx eax, word [esi + 0x2a]
cmp ecx, eax
jl 0x497a07
jmp 0x497a28
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
or ecx, 0xffffffff
mov esi, dword [esp + 0x44]
mov word [eax + ebx*2], cx
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [eax + ebx*4], 0x50bca0
mov eax, dword [ecx + 0x28]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x44]
inc dword [ecx + 0x28]
mov esi, dword [esp + 0x10]
mov ecx, dword [edi + 0x88]
inc esi
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x497a87
push 0
push esi
push dword [esp + 0x2c]
mov edx, 0x70
mov ecx, edi
call fcn.00445890
mov edx, dword [esp + 0x34]
add esp, 0xc
jmp 0x497abd
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x70
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov esi, dword [eax + 8]
call fcn.0046de80
mov edx, eax
test edx, edx
je 0x497afe
mov ecx, dword [esi]
cmp byte [ecx + 0x49], 0
je 0x497ae9
push edx
mov edx, 0xfffffff7
call fcn.00446480
add esp, 4
jmp 0x497afe
mov eax, dword [esi + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov edx, dword [esp + 0x44]
movzx eax, byte [edx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 0x30], 0x10
lea esi, [eax + ecx*8]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x24], esi
je 0x497c2c
mov ecx, dword [edi + 0x88]
mov edx, dword [esi + 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 0x60], ecx
cmp dword [eax + 0x30], ecx
jg 0x497b5c
push 0
push 0
push 0
mov edx, 0x46
mov ecx, edi
call fcn.00445890
mov edx, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x60], eax
jmp 0x497b92
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x46
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 [edi + 0xc]
mov ecx, dword [edi + 0x88]
mov esi, dword [esi + 0x20]
cmp dword [eax + 0x30], ecx
jg 0x497bbc
push esi
push 0
push edx
mov edx, 0xd
mov ecx, edi
call fcn.00445890
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x497bee
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov edi, dword [esp + 0x34]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x88]
cmp dword [eax + 0x30], esi
jg 0x497c14
push 0
push 0
push edx
mov edx, 0xe
mov ecx, edi
call fcn.00445890
add esp, 0xc
mov esi, eax
jmp 0x497c88
lea eax, [esi + 1]
mov dword [edi + 0x88], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0xe
jmp 0x497c68
mov esi, dword [edi + 0x88]
mov edx, dword [edx + 4]
cmp dword [eax + 0x30], esi
jg 0x497c52
push 0
push 0
push edx
mov edx, 0x24
mov ecx, edi
call fcn.00445890
add esp, 0xc
mov esi, eax
jmp 0x497c88
lea eax, [esi + 1]
mov dword [edi + 0x88], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x24
mov edi, dword [esp + 0x34]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 4], edx
cmp dword [esp + 0x50], 0
je 0x497cfe
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x48], ecx
mov edx, dword [ecx + 0x3c]
mov dword [esp + 0x5c], edx
lea eax, [edx + 1]
mov dword [ecx + 0x3c], eax
lea eax, [edx - 1]
test edx, eax
jne 0x497ccc
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x40]
mov ecx, dword [ecx]
push 0
push eax
call fcn.004266f0
mov ecx, dword [esp + 0x50]
add esp, 8
mov edx, dword [esp + 0x5c]
mov dword [ecx + 0x40], eax
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x497cda
mov dword [eax + edx*4], 0xffffffff
not edx
push 0x10
push edx
push dword [esp + 0x58]
mov dword [esp + 0x68], edx
push dword [esp + 0x28]
call fcn.004616d0
mov eax, dword [esp + 0x50]
add esp, 0x10
or dword [eax + 0x24], 0x20000
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx + 0x13]
test al, al
jne 0x497d11
inc dword [ecx + 0x2c]
mov eax, dword [ecx + 0x2c]
jmp 0x497d20
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x90]
mov edx, dword [esp + 0x28]
push 0
push 0
push 0
push 0
push eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
push dword [eax + 4]
call fcn.0046ff70
mov ecx, dword [edi + 0xc]
add esp, 0x18
mov edx, dword [edi + 0x88]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], eax
cmp dword [ecx + 0x30], edx
jg 0x497d76
mov edx, dword [esp + 0x2c]
mov ecx, edi
push 0
push edx
push eax
mov edx, 0x85
call fcn.00445890
add esp, 0xc
jmp 0x497dac
lea eax, [edx + 1]
mov dword [edi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x58]
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x85
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x88]
mov dword [esp + 0xc], ecx
test ecx, ecx
jle 0x497dd4
mov eax, dword [edi + 0x58]
lea ecx, [ecx + ecx*4]
mov edx, 0x10
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [edi + 0x88]
mov dword [esp + 0xc], ecx
cmp dword [esp + 0x50], 0
mov edx, ecx
je 0x497e0d
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x40]
mov dword [esp + 0xc], eax
mov eax, ecx
cmp dword [esp + 0xc], 0
je 0x497e11
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0xc]
lea eax, [eax*4 + 4]
sub edx, eax
mov dword [edx], ecx
mov edx, dword [edi + 0x88]
mov eax, edx
jmp 0x497e11
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
test byte [ecx + 0x30], 0x10
je 0x497ecd
lea ecx, [eax - 1]
mov eax, dword [esp + 0x60]
test eax, eax
cmovns ecx, eax
mov eax, dword [edi]
cmp byte [eax + 0x49], 0
je 0x497e3a
mov ecx, 0x52100c
jmp 0x497e43
mov eax, dword [edi + 0x58]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x30]
mov edx, esi
add eax, ebx
mov ebx, dword [esp + 0x24]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
push 1
push dword [ebx + 0x28]
push dword [eax + 4]
call fcn.00497340
mov eax, dword [edi + 0xc]
add esp, 0xc
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x497e95
push 0
push esi
push 0
mov edx, 0xb
mov ecx, edi
call fcn.00445890
add esp, 0xc
and dword [ebx + 0x30], 0xffffffef
jmp 0x497f2a
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
and dword [ebx + 0x30], 0xffffffef
jmp 0x497f2a
mov eax, dword [esp + 0x44]
lea ebx, [esi + 1]
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x48], ecx
cmp dword [eax + 0x30], edx
jg 0x497ef8
push 0
push ebx
push ecx
mov edx, 5
mov ecx, edi
call fcn.00445890
add esp, 0xc
jmp 0x497f2a
lea eax, [edx + 1]
mov dword [edi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x58]
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 0x88]
test edx, edx
jle 0x497f4a
mov eax, dword [edi + 0x58]
lea ecx, [edx + edx*4]
mov edx, 3
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [edi + 0x88]
mov eax, dword [edi]
cmp byte [eax + 0x49], 0
je 0x497f59
mov eax, 0x52100c
jmp 0x497f6a
test esi, esi
lea eax, [edx - 1]
cmovns eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], edx
test ecx, ecx
je 0x497f8d
mov edx, dword [esp + 0x1c]
mov al, byte [edx + 0x13]
cmp al, 8
jae 0x497f8d
movzx eax, al
mov dword [edx + eax*4 + 0x90], ecx
inc byte [edx + 0x13]
mov eax, dword [edi]
mov edx, dword [edi + 0x88]
cmp byte [eax + 0x49], 0
je 0x497fa2
mov eax, 0x52100c
jmp 0x497fb7
mov ecx, dword [esp + 0x64]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x50]
test eax, eax
je 0x497fcf
mov edx, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
call fcn.0045bd50
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret