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

Disassembly:
sub esp, 0x88
mov eax, dword [esp + 0x8c]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x14], ecx
je 0x473718
mov edx, dword [esp + 0xa0]
mov eax, 1
cmp edx, eax
jl 0x473718
cmp dword [esp + 0xa4], eax
jl 0x473718
xor ebp, ebp
lea ebx, [ecx + 0x216c]
mov esi, dword [ebx]
test esi, esi
je 0x4726d4
add esi, 0x10
mov edi, 0x32
mov eax, dword [esi]
test eax, eax
je 0x4726b3
push eax
call fcn.004ed4d0
add esp, 4
mov dword [esi], 0
add esi, 4
dec edi
jne 0x4726a4
mov eax, dword [ebx]
inc ebp
add ebx, 4
cmp ebp, 0x1f4
mov dword [eax + 0xc], 0xffffffff
jl 0x472696
mov eax, dword [esp + 0xa8]
test eax, eax
jne 0x472705
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x24], ecx
mov ebx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
mov ecx, edx
mov ebp, eax
jmp 0x472782
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
mov esi, dword [eax]
mov eax, dword [eax + 8]
mov ebp, ecx
mov ebx, edx
test ecx, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jge 0x47272e
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov edi, dword [esp + 0xa4]
cmp ecx, edi
jle 0x47273f
mov ebp, edi
mov dword [esp + 0x1c], ebp
test edx, edx
jge 0x472749
xor ebx, ebx
mov dword [esp + 0x24], ebx
cmp edx, edi
jle 0x472753
mov ebx, edi
mov dword [esp + 0x24], ebx
test esi, esi
jge 0x47275f
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0xa0]
cmp esi, ecx
jle 0x47276e
mov dword [esp + 0x18], ecx
test eax, eax
jge 0x47277a
mov dword [esp + 0x20], 0
cmp eax, ecx
jle 0x472782
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0xac]
test eax, eax
jge 0x472798
mov dword [esp + 0xac], 0
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x4728cc
cmp ebp, ebx
jge 0x4728cc
mov eax, ebp
lea edi, [ecx + ecx]
imul eax, ecx
mov ecx, dword [esp + 0x18]
mov edx, ebx
mov ebx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x9c]
sub edx, ebp
lea esi, [ecx + eax*2]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
cmp ebp, ecx
mov eax, esi
jge 0x4727ec
sub ecx, ebp
mov bp, word [ebx + 0x14]
mov word [eax], bp
add eax, 2
dec ecx
jne 0x4727df
add esi, edi
dec edx
jne 0x4727cf
mov ebp, dword [esp + 0x1c]
call fcn.004db480
test eax, eax
jne 0x472810
call fcn.004dbaf0
call fcn.004db480
test eax, eax
je 0x473718
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x473718
mov dl, byte [0xcf7e69]
mov esi, dword [ebx + 4]
neg dl
sbb edx, edx
mov ecx, dword [ebx + 0xc]
and edx, 0x8000
mov edi, dword [esp + 0x18]
add edx, 0x7fff
add ecx, edi
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x20]
sub edx, esi
mov esi, dword [ebx]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0xac]
sub esi, edx
mov dword [esp + 0x50], ecx
add esi, ebp
mov ebp, ecx
xor ecx, ecx
mov dword [esp + 0x8c], esi
cmp eax, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], ecx
jle 0x4736f5
mov ecx, dword [ebx + 0x28]
mov eax, dword [esp + 0x30]
test ch, 4
je 0x472897
test eax, eax
jg 0x4736f5
mov eax, dword [ebx + eax*4 + 0x22c]
test dword [eax + 8], 0x10000
je 0x472923
mov eax, dword [eax + 0xc]
mov ecx, dword [ebx + 0x18]
test eax, eax
mov dword [esp + 0x44], ecx
jl 0x47292a
mov edx, dword [ebx + eax*4 + 0x216c]
mov al, byte [edx + 9]
test al, al
je 0x4728d5
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x44], eax
jmp 0x47292a
mov ebx, dword [esp + 0x14]
jmp 0x4727f5
xor edi, edi
mov esi, 0x8d0280
cmp edi, dword [0x8d0a50]
jge 0x47292a
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx + ecx*4 + 0x22c]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebx + eax*4 + 0x216c]
mov eax, dword [esi]
mov edx, dword [ecx + 4]
push edx
push eax
call fcn.004d9990
add esp, 8
test eax, eax
je 0x47291a
add esi, 4
inc edi
cmp esi, 0x8d0a50
jl 0x4728dc
jmp 0x47292a
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x44], ecx
jmp 0x47292a
mov edx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x44]
test eax, eax
jge 0x472939
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x30]
sar eax, 1
and eax, 0x3def
test esi, esi
mov dword [esp + 0x94], eax
je 0x472954
call fcn.004dba50
mov eax, dword [ebx + esi*4 + 0x22c]
mov ecx, dword [eax + 8]
push ecx
call fcn.004db9d0
mov eax, dword [ebx + 0x28]
add esp, 4
test ah, 1
je 0x4729eb
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ebx*4 + 0x22c]
mov esi, dword [eax + 8]
call fcn.004dba50
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
sub edi, eax
push edi
push esi
push ebx
call fcn.00473730
push esi
mov bl, al
call fcn.004db9d0
add esp, 4
test bl, bl
jne 0x4729eb
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + ebx*4 + 0x22c]
test byte [edx + 8], 4
je 0x4729da
call fcn.004dba50
mov ecx, dword [esp + 0x14]
and esi, 0xfffffffb
push edi
push esi
push ebx
call fcn.00473730
test al, al
jne 0x4729e2
jmp 0x4729df
call fcn.004dba50
or esi, 2
push esi
call fcn.004db9d0
add esp, 4
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], 0
mov eax, dword [esi + eax*4 + 0x22c]
mov dword [esp + 0x64], ecx
lea edx, [ecx + 0x12]
mov dword [esp + 0x60], ebp
mov edi, dword [eax]
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x6c], edx
jl 0x472a3c
mov eax, dword [esi + eax*4 + 0x216c]
mov edx, dword [eax + 0xc]
test edx, edx
jge 0x472a3c
mov edx, dword [esp + 0xac]
add ecx, edx
mov dword [eax + 0xc], ecx
cmp word [edi], 0
je 0x4735d7
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x40]
jmp 0x472a78
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0xb4]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0xb0]
inc eax
cmp ecx, edx
mov dword [esp + 0x40], eax
jge 0x472a8b
cmp eax, ecx
jle 0x472a89
cmp eax, edx
jle 0x472a95
cmp ecx, edx
jle 0x472a9c
cmp eax, ecx
jg 0x472a9c
cmp eax, edx
jle 0x472a9c
mov byte [esp + 0x2b], 1
jmp 0x472aa1
mov byte [esp + 0x2b], 0
mov eax, dword [esp + 0x2c]
cmp word [edi + eax*2], 0xa
mov al, byte [esi + 0x28]
jne 0x472cbe
test al, 1
jne 0x4735c4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + edx*4 + 0x22c]
mov eax, dword [eax + 0xc]
test eax, eax
jl 0x472b24
cmp ebp, dword [esp + 0x60]
jle 0x472b24
mov edi, dword [ecx + eax*4 + 0x216c]
xor esi, esi
lea eax, [edi + 0x10]
cmp dword [eax], 0
je 0x472af3
inc esi
add eax, 4
cmp esi, 0x32
jl 0x472ae3
jmp 0x472b24
push 0x10
call fcn.004ed8ee
mov ecx, dword [esp + 0x68]
mov dword [edi + esi*4 + 0x10], eax
mov dword [eax + 4], ecx
mov edx, dword [edi + esi*4 + 0x10]
mov eax, dword [esp + 0x70]
add esp, 4
mov dword [edx + 0xc], eax
mov ecx, dword [edi + esi*4 + 0x10]
mov eax, dword [esp + 0x60]
mov dword [ecx + 8], ebp
mov edx, dword [edi + esi*4 + 0x10]
mov dword [edx], eax
mov al, byte [esp + 0x2b]
test al, al
je 0x472bd2
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x472c47
cmp ebp, dword [esp + 0x20]
jge 0x472c47
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea ebp, [edx + 0x12]
cmp ebp, eax
jl 0x472c47
mov edi, edx
cmp edi, ebp
jge 0x472c47
mov edx, dword [esp + 0x38]
mov esi, edi
imul esi, dword [esp + 0xa0]
lea ebx, [edx + 8]
cmp edx, ebx
jge 0x472bc2
cmp edi, dword [esp + 0x1c]
jl 0x472bb9
cmp edi, dword [esp + 0x24]
jge 0x472bb9
cmp edx, dword [esp + 0x18]
jl 0x472bb9
cmp edx, dword [esp + 0x20]
jge 0x472bb9
mov ecx, dword [esp + 0x9c]
lea eax, [esi + edx]
lea ecx, [ecx + eax*2]
mov ax, word [ecx]
test ax, ax
je 0x472bb4
not eax
and eax, dword [esp + 0x4c]
mov word [ecx], ax
jmp 0x472bb9
mov word [ecx], 1
inc edx
cmp edx, ebx
jl 0x472b7c
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0xa0]
inc edi
add esi, ecx
cmp edi, ebp
jl 0x472b78
jmp 0x472c47
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0xb0]
dec edx
cmp eax, edx
jne 0x472c47
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jge 0x472c47
cmp ebp, dword [esp + 0x20]
jge 0x472c47
mov ecx, dword [esp + 0x1c]
lea esi, [eax + 0x12]
cmp esi, ecx
jl 0x472c47
cmp eax, esi
jge 0x472c47
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0x9c]
lea edx, [ecx + ecx]
mov ecx, eax
imul ecx, dword [esp + 0xa0]
add ecx, ebp
lea ecx, [edi + ecx*2]
cmp eax, dword [esp + 0x1c]
jl 0x472c40
cmp eax, dword [esp + 0x24]
jge 0x472c40
cmp ebp, dword [esp + 0x18]
jl 0x472c40
mov di, word [ecx]
not di
and edi, ebx
mov word [ecx], di
inc eax
add ecx, edx
cmp eax, esi
jl 0x472c23
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
inc ecx
cmp eax, 1
mov dword [esp + 0x2c], ecx
je 0x472c5e
add dword [esp + 0x10], 0x12
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
mov edx, dword [ebp + edi*4 + 0x22c]
mov esi, dword [edx + 8]
call fcn.004dba50
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x2c]
sub eax, ebx
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00473aa0
mov ebp, eax
push esi
add ebp, ebx
mov dword [esp + 0x3c], ebp
call fcn.004db9d0
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x64], eax
add eax, 0x12
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], 0
jmp 0x4735c0
test al, 0x10
mov eax, dword [esp + 0x5c]
je 0x472d22
test eax, eax
je 0x472cdd
inc eax
cmp eax, 3
mov dword [esp + 0x5c], eax
jle 0x472d22
inc dword [esp + 0x2c]
jmp 0x4735c4
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + edi*4 + 0x22c]
mov esi, dword [eax + 8]
call fcn.004dba50
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
push edi
call fcn.004738b0
push esi
mov edi, eax
call fcn.004db9d0
mov eax, dword [esp + 0x4c]
add edi, ebp
add esp, 4
cmp edi, eax
jl 0x472d47
mov dword [esp + 0x5c], 1
jmp 0x472d26
test eax, eax
je 0x472d47
lea edx, [esp + 0x88]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x94]
push eax
lea edx, [esp + 0x80]
push ecx
push edx
push 0x2e
jmp 0x472d74
lea eax, [esp + 0x88]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x84]
push eax
mov ax, word [ecx + edx*2]
push eax
call fcn.004dbc10
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
add esp, 0x14
test eax, eax
je 0x472e47
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x472e53
mov ecx, dword [esp + 0x7c]
mov dx, word [ecx + eax*2]
mov ax, word [ecx + eax*2 - 2]
push edx
push eax
call fcn.004d9c10
add esp, 8
test al, al
je 0x472e47
mov ecx, dword [esp + 0x14]
test byte [ecx + 0x28], 0x19
jne 0x472e47
mov edi, dword [esp + 0x30]
mov edx, ecx
mov eax, dword [edx + edi*4 + 0x22c]
mov esi, dword [eax + 8]
call fcn.004dba50
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
push edi
call fcn.00473990
push esi
mov edi, eax
call fcn.004db9d0
mov eax, dword [esp + 0x4c]
add edi, ebp
add esp, 4
cmp edi, eax
jl 0x472e47
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + ebp*4 + 0x22c]
add ecx, 0x12
mov dword [esp + 0x10], ecx
mov esi, dword [eax + 8]
call fcn.004dba50
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
sub ecx, edi
push ecx
mov ecx, dword [esp + 0x18]
push edx
push ebp
call fcn.00473aa0
mov ebp, eax
push esi
add ebp, edi
call fcn.004db9d0
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x473271
mov eax, dword [esp + 0x34]
test eax, eax
je 0x473259
mov eax, dword [esp + 0x14]
test byte [eax + 0x28], 0x19
jne 0x4730bc
mov esi, dword [esp + 0x30]
mov ecx, eax
mov edx, dword [ecx + esi*4 + 0x22c]
mov edi, dword [edx + 8]
call fcn.004dba50
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
inc eax
push eax
push esi
mov dword [esp + 0x7c], eax
call fcn.00473990
mov esi, eax
mov eax, dword [esp + 0x34]
push edi
add esi, eax
call fcn.004db9d0
mov eax, dword [esp + 0x4c]
add esi, ebp
add esp, 4
cmp esi, eax
jl 0x4730bc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + edx*4 + 0x22c]
mov eax, dword [eax + 0xc]
test eax, eax
jl 0x472f1e
cmp ebp, dword [esp + 0x60]
jle 0x472f1e
mov edi, dword [ecx + eax*4 + 0x216c]
xor esi, esi
lea eax, [edi + 0x10]
cmp dword [eax], 0
je 0x472eed
inc esi
add eax, 4
cmp esi, 0x32
jl 0x472edd
jmp 0x472f1e
push 0x10
call fcn.004ed8ee
mov ecx, dword [esp + 0x68]
mov dword [edi + esi*4 + 0x10], eax
mov dword [eax + 4], ecx
mov edx, dword [edi + esi*4 + 0x10]
mov eax, dword [esp + 0x70]
add esp, 4
mov dword [edx + 0xc], eax
mov ecx, dword [edi + esi*4 + 0x10]
mov eax, dword [esp + 0x60]
mov dword [ecx + 8], ebp
mov edx, dword [edi + esi*4 + 0x10]
mov dword [edx], eax
mov al, byte [esp + 0x2b]
test al, al
je 0x472fd4
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x47304f
cmp ebp, dword [esp + 0x20]
jge 0x47304f
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea eax, [edx + 0x12]
cmp eax, ecx
jl 0x47304f
mov edi, edx
cmp edi, eax
jge 0x47304f
mov esi, edx
imul esi, dword [esp + 0xa0]
mov eax, dword [esp + 0x34]
mov edx, ebp
add eax, ebp
cmp ebp, eax
jge 0x472fbd
cmp edi, dword [esp + 0x1c]
jl 0x472fb2
cmp edi, dword [esp + 0x24]
jge 0x472fb2
cmp edx, dword [esp + 0x18]
jl 0x472fb2
cmp edx, dword [esp + 0x20]
jge 0x472fb2
mov eax, dword [esp + 0x9c]
lea ecx, [edx + esi]
lea ecx, [eax + ecx*2]
mov ax, word [ecx]
test ax, ax
je 0x472fad
not eax
and eax, ebx
mov word [ecx], ax
jmp 0x472fb2
mov word [ecx], 1
mov ecx, dword [esp + 0x34]
inc edx
add ecx, ebp
cmp edx, ecx
jl 0x472f77
mov edx, dword [esp + 0xa0]
inc edi
add esi, edx
mov edx, dword [esp + 0x10]
lea eax, [edx + 0x12]
cmp edi, eax
jl 0x472f6b
jmp 0x47304f
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xb0]
dec eax
cmp ecx, eax
jne 0x47304f
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x47304f
cmp ebp, dword [esp + 0x20]
jge 0x47304f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea esi, [edx + 0x12]
cmp esi, eax
jl 0x47304f
mov eax, edx
cmp eax, esi
jge 0x47304f
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0x9c]
lea edx, [ecx + ecx]
mov ecx, eax
imul ecx, dword [esp + 0xa0]
add ecx, ebp
lea ecx, [edi + ecx*2]
cmp eax, dword [esp + 0x1c]
jl 0x473048
cmp eax, dword [esp + 0x24]
jge 0x473048
cmp ebp, dword [esp + 0x18]
jl 0x473048
mov di, word [ecx]
not di
and edi, ebx
mov word [ecx], di
inc eax
add ecx, edx
cmp eax, esi
jl 0x47302b
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x74]
mov ecx, dword [eax + ebp*4 + 0x22c]
add edi, 0x12
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], edi
mov esi, dword [ecx + 8]
call fcn.004dba50
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x2c]
sub edx, ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ebp
call fcn.00473aa0
mov edx, dword [esp + 0x50]
mov ebp, eax
add ebp, edx
push esi
mov dword [esp + 0x3c], ebp
call fcn.004db9d0
add esp, 4
mov dword [esp + 0x64], edi
add edi, 0x12
mov dword [esp + 0x60], ebp
mov dword [esp + 0x6c], edi
jmp 0x4735c4
call fcn.004dbae0
mov edx, dword [esp + 0x10]
test al, al
je 0x473131
cmp edx, dword [esp + 0x24]
jge 0x473131
cmp ebp, dword [esp + 0x20]
jge 0x473131
mov eax, dword [esp + 0x1c]
lea ecx, [edx + 0x12]
cmp ecx, eax
jl 0x473131
mov esi, dword [esp + 0x34]
lea ecx, [edx + 0xe]
add esi, ebp
mov eax, ebp
cmp ebp, esi
jge 0x473131
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x9c]
cmp ecx, dword [esp + 0x1c]
jl 0x473122
cmp ecx, dword [esp + 0x24]
jge 0x473122
cmp eax, dword [esp + 0x18]
jl 0x473122
cmp eax, dword [esp + 0x20]
jge 0x473122
mov edi, ecx
imul edi, dword [esp + 0xa0]
add edi, eax
mov word [esi + edi*2], dx
mov edi, dword [esp + 0x34]
inc eax
add edi, ebp
cmp eax, edi
jl 0x4730fa
mov edx, dword [esp + 0x10]
mov al, byte [esp + 0x2b]
test al, al
je 0x4731e1
cmp edx, dword [esp + 0x24]
jge 0x473259
cmp ebp, dword [esp + 0x20]
jge 0x473259
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea eax, [edx + 0x12]
cmp eax, ecx
jl 0x473259
mov edi, edx
cmp edi, eax
jge 0x473259
mov esi, edx
imul esi, dword [esp + 0xa0]
mov eax, dword [esp + 0x34]
mov edx, ebp
add eax, ebp
cmp ebp, eax
jge 0x4731ca
cmp edi, dword [esp + 0x1c]
jl 0x4731bf
cmp edi, dword [esp + 0x24]
jge 0x4731bf
cmp edx, dword [esp + 0x18]
jl 0x4731bf
cmp edx, dword [esp + 0x20]
jge 0x4731bf
mov eax, dword [esp + 0x9c]
lea ecx, [esi + edx]
lea ecx, [eax + ecx*2]
mov ax, word [ecx]
test ax, ax
je 0x4731ba
not eax
and eax, ebx
mov word [ecx], ax
jmp 0x4731bf
mov word [ecx], 1
mov ecx, dword [esp + 0x34]
inc edx
add ecx, ebp
cmp edx, ecx
jl 0x473184
mov edx, dword [esp + 0xa0]
inc edi
add esi, edx
mov edx, dword [esp + 0x10]
lea eax, [edx + 0x12]
cmp edi, eax
jl 0x473178
jmp 0x473259
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xb0]
dec eax
cmp ecx, eax
jne 0x473259
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x473259
cmp ebp, dword [esp + 0x20]
jge 0x473259
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea esi, [ecx + 0x12]
cmp esi, eax
jl 0x473259
cmp ecx, esi
jge 0x473259
mov eax, ecx
mov edx, dword [esp + 0xa0]
imul eax, dword [esp + 0xa0]
mov edi, dword [esp + 0x9c]
add edx, edx
add eax, ebp
lea eax, [edi + eax*2]
cmp ecx, dword [esp + 0x1c]
jl 0x473252
cmp ecx, dword [esp + 0x24]
jge 0x473252
cmp ebp, dword [esp + 0x18]
jl 0x473252
mov di, word [eax]
not di
and edi, ebx
mov word [eax], di
inc ecx
add eax, edx
cmp ecx, esi
jl 0x473235
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
add ebp, ecx
inc eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], eax
jmp 0x4735c4
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x90]
mov ebx, dword [esp + 0x10]
lea edi, [eax + ebp]
add ecx, ebx
lea esi, [eax + edx + 1]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x54], esi
call fcn.004db470
test al, al
je 0x4732a7
dec esi
mov dword [esp + 0x54], esi
call fcn.004dbad0
test al, al
je 0x4732b5
inc esi
mov dword [esp + 0x54], esi
call fcn.004dbac0
test al, al
je 0x4732c3
inc esi
mov dword [esp + 0x54], esi
call fcn.004dbae0
test al, al
je 0x473321
mov eax, dword [esp + 0x78]
lea ecx, [esi + eax]
add ecx, ebp
cmp edi, ecx
jge 0x47331d
mov edx, dword [esp + 0x44]
lea ecx, [esi + ebp]
mov esi, dword [esp + 0x9c]
lea eax, [ebx + 0xe]
cmp eax, dword [esp + 0x1c]
jl 0x473312
cmp eax, dword [esp + 0x24]
jge 0x473312
cmp edi, dword [esp + 0x18]
jl 0x473312
cmp edi, dword [esp + 0x20]
jge 0x473312
mov ebx, eax
imul ebx, dword [esp + 0xa0]
add ebx, edi
mov word [esi + ebx*2], dx
mov ebx, dword [esp + 0x78]
inc edi
add ebx, ecx
cmp edi, ebx
jl 0x4732ea
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x88]
test eax, eax
mov dword [esp + 0x70], eax
jle 0x473481
mov eax, dword [esp + 0x58]
imul eax, dword [esp + 0xa0]
mov dword [esp + 0x84], eax
call fcn.004dbac0
test al, al
je 0x47335e
mov edx, dword [esp + 0x70]
lea eax, [edx - 1]
cdq
sub eax, edx
sar eax, 1
add edi, eax
call fcn.004db470
mov byte [esp + 0x3f], al
mov eax, dword [esp + 0x34]
xor ebx, ebx
test eax, eax
jle 0x47344c
lea eax, [edi + 1]
mov dword [esp + 0x80], eax
mov eax, ebx
and eax, 7
jne 0x47339d
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x88]
cmp ecx, edx
jne 0x473399
test ebx, ebx
je 0x47339d
inc dword [esp + 0x38]
mov ecx, 7
mov edx, 1
sub ecx, eax
mov eax, dword [esp + 0x38]
shl edx, cl
mov cl, byte [eax]
test cl, dl
je 0x47342f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
cmp eax, edx
jl 0x47342f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
cmp ecx, eax
jge 0x47342f
cmp edi, dword [esp + 0x18]
jl 0x47342f
cmp edi, dword [esp + 0x20]
jge 0x47342f
mov cl, byte [esp + 0x3f]
mov eax, dword [esp + 0x44]
test cl, cl
je 0x4733f1
mov eax, dword [esp + 0x94]
mov byte [esp + 0x3f], 0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x9c]
lea esi, [ecx + edi]
mov word [edx + esi*2], ax
call fcn.004dbad0
test al, al
je 0x47342f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x80]
cmp ecx, eax
jge 0x47342f
mov edx, dword [esp + 0x9c]
mov cx, word [esp + 0x44]
mov word [edx + esi*2 + 2], cx
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x34]
inc edi
inc edx
inc ebx
mov dword [esp + 0x80], edx
cmp ebx, eax
jl 0x47337f
mov eax, dword [esp + 0xa0]
mov esi, dword [esp + 0x84]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x74]
add esi, eax
mov eax, dword [esp + 0x70]
inc ebx
dec eax
test eax, eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x84], esi
mov dword [esp + 0x70], eax
jg 0x473347
mov al, byte [esp + 0x2b]
test al, al
je 0x473537
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x4735ad
cmp ebp, dword [esp + 0x20]
jge 0x4735ad
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea eax, [edx + 0x12]
cmp eax, ecx
jl 0x4735ad
mov edi, edx
lea eax, [edi + 0x12]
cmp edi, eax
jge 0x4735ad
mov eax, dword [esp + 0x54]
mov esi, edx
imul esi, dword [esp + 0xa0]
lea ebx, [eax + ebp]
cmp ebp, ebx
mov edx, ebp
jge 0x473520
cmp edi, dword [esp + 0x1c]
jl 0x47351b
cmp edi, dword [esp + 0x24]
jge 0x47351b
cmp edx, dword [esp + 0x18]
jl 0x47351b
cmp edx, dword [esp + 0x20]
jge 0x47351b
mov eax, dword [esp + 0x9c]
lea ecx, [esi + edx]
lea ecx, [eax + ecx*2]
mov ax, word [ecx]
test ax, ax
je 0x473516
not eax
and eax, dword [esp + 0x4c]
mov word [ecx], ax
jmp 0x47351b
mov word [ecx], 1
inc edx
cmp edx, ebx
jl 0x4734de
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xa0]
inc edi
add esi, edx
lea eax, [ecx + 0x12]
cmp edi, eax
jl 0x4734d8
jmp 0x4735ad
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0xb0]
dec edx
cmp eax, edx
jne 0x4735ad
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x4735ad
cmp ebp, dword [esp + 0x20]
jge 0x4735ad
mov eax, ecx
mov ecx, dword [esp + 0x1c]
lea esi, [eax + 0x12]
cmp esi, ecx
jl 0x4735ad
cmp eax, esi
jge 0x4735ad
mov ecx, dword [esp + 0xa0]
mov edi, eax
imul edi, ecx
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x9c]
add edi, ebp
lea ecx, [ecx + edi*2]
mov edi, dword [esp + 0x4c]
cmp eax, dword [esp + 0x1c]
jl 0x4735a6
cmp eax, dword [esp + 0x24]
jge 0x4735a6
cmp ebp, dword [esp + 0x18]
jl 0x4735a6
mov bx, word [ecx]
not bx
and ebx, edi
mov word [ecx], bx
inc eax
add ecx, edx
cmp eax, esi
jl 0x473589
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
add ebp, ecx
inc eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x2c]
cmp word [edx + eax*2], 0
jne 0x472a5e
mov edx, dword [esp + 0x20]
mov ebx, ebp
cmp ebp, edx
jle 0x4735e3
mov ebx, edx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov eax, dword [ecx + eax*4 + 0x22c]
mov eax, dword [eax + 0xc]
test eax, eax
jl 0x473650
cmp ebx, dword [esp + 0x60]
jle 0x473650
mov edi, dword [ecx + eax*4 + 0x216c]
xor esi, esi
lea eax, [edi + 0x10]
cmp dword [eax], 0
je 0x47361b
inc esi
add eax, 4
cmp esi, 0x32
jl 0x47360b
jmp 0x473650
push 0x10
call fcn.004ed8ee
mov ecx, dword [esp + 0x68]
mov dword [edi + esi*4 + 0x10], eax
mov dword [eax + 4], ecx
mov edx, dword [edi + esi*4 + 0x10]
mov eax, dword [esp + 0x70]
add esp, 4
mov dword [edx + 0xc], eax
mov ecx, dword [edi + esi*4 + 0x10]
mov eax, dword [esp + 0x60]
mov dword [ecx + 8], ebx
mov edx, dword [edi + esi*4 + 0x10]
mov dword [edx], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x40]
cmp ecx, eax
je 0x473667
test eax, eax
jne 0x4736d4
test ecx, ecx
jne 0x4736d4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0xb0], 0xffffffff
jge 0x4736d4
cmp ebp, edx
jge 0x4736d4
mov ecx, dword [esp + 0x1c]
lea esi, [eax + 0x12]
cmp esi, ecx
jl 0x4736d4
cmp eax, esi
jge 0x4736d4
mov ecx, dword [esp + 0xa0]
mov edi, eax
imul edi, ecx
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x9c]
add edi, ebp
lea ecx, [ecx + edi*2]
cmp eax, dword [esp + 0x1c]
jl 0x4736cd
cmp eax, dword [esp + 0x24]
jge 0x4736cd
cmp ebp, dword [esp + 0x18]
jl 0x4736cd
mov di, word [ecx]
mov ebx, dword [esp + 0x4c]
not di
and edi, ebx
mov word [ecx], di
inc eax
add ecx, edx
cmp eax, esi
jl 0x4736ac
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x8c]
inc eax
mov ecx, dword [edx + 0x20]
mov dword [esp + 0x30], eax
cmp eax, ecx
mov ebx, edx
jl 0x472883
call fcn.004dba50
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
sub eax, esi
pop edi
add eax, ecx
mov ecx, dword [esp + 0xc]
pop esi
pop ebp
lea eax, [eax + ecx + 0x12]
pop ebx
add esp, 0x88
ret 0x20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret 0x20