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

Disassembly:
sub esp, 0x60
mov eax, dword [0x44d700]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x58]
xor edx, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x78]
mov ecx, dword [edi]
mov esi, dword [edi + 8]
mov eax, dword [edi + 0xc]
sar ecx, 4
sar esi, 4
sar eax, 4
dec ecx
mov dword [esp + 0x30], esi
test ecx, ecx
setle dl
dec edx
and edx, ecx
mov ecx, dword [edi + 4]
sar ecx, 4
mov ebp, edx
dec ecx
xor edx, edx
mov dword [esp + 0x34], ebp
test ecx, ecx
setle dl
dec edx
and ecx, edx
cmp eax, ecx
jl 0x48149a
lea edx, [eax + eax*8]
sub eax, ecx
lea edx, [ebp + edx*2]
shl edx, 2
inc eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
cmp ebp, esi
jg 0x481484
mov eax, esi
mov dword [esp + 0x10], edx
sub eax, ebp
inc eax
mov dword [esp + 0x24], eax
mov ecx, dword [0x4477d4]
mov edx, dword [esp + 0x10]
mov ebx, dword [ecx + edx]
test ebx, ebx
mov dword [esp + 0x20], ebx
je 0x48146a
mov ebp, dword [ebx + 0x20]
movsx ecx, word [ebx + 0x1e]
movsx eax, word [ebx + 0x1a]
mov esi, dword [ebp + 4]
mov edi, dword [ebp]
mov edx, dword [ebp + 0xc]
add ecx, esi
mov esi, dword [esp + 0x78]
add eax, edi
mov edi, dword [ebp + 8]
add edx, ecx
mov esi, dword [esi]
add edi, eax
cmp eax, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
jle 0x48131e
mov esi, eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x50], edi
mov eax, dword [eax + 8]
cmp edi, eax
jl 0x481331
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 4]
cmp ecx, eax
jg 0x48133e
mov ecx, eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x4c], ecx
mov eax, dword [eax + 0xc]
cmp edx, eax
jge 0x48134f
mov eax, edx
mov edx, dword [esp + 0x50]
sub eax, ecx
sub edx, esi
mov dword [esp + 0x1c], eax
test edx, edx
mov dword [esp + 0x18], edx
jle 0x48144f
test eax, eax
jle 0x48144f
mov eax, dword [esp + 0x14]
mov ecx, eax
add eax, 0x18
mov dword [esp + 0x14], eax
movsx eax, byte [ebx + 0x2a]
mov edx, eax
shl edx, 5
lea ebx, [esp + eax*4 + 0x58]
sub edx, eax
mov eax, dword [ebx]
lea edx, [edx + edx*4]
lea edx, [eax + edx*2]
inc eax
mov dword [ebx], eax
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
lea edx, [edx + edx*8]
dec ebx
lea edx, [edx*4 + 0x44dbf8]
mov dword [edx], ecx
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ebx
movsx ebx, byte [ebp + 0x10]
sub edi, ebx
mov ebx, dword [esp + 0x3c]
dec edi
mov dword [edx + 4], edi
movsx edi, byte [ebp + 0x10]
add ebx, edi
mov dword [edx + 0x18], 0
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx + 0x14]
mov dword [ecx + 0x10], edx
movsx dx, byte [ebx + 0x28]
mov word [ecx + 0x16], dx
mov edx, dword [esp + 0x4c]
mov dword [ecx], esi
mov dword [ecx + 4], edx
test byte [0x45e18c], 1
je 0x481421
sub esi, eax
lea eax, [esi + esi*2]
mov dword [ecx + 8], eax
movsx eax, byte [ebp + 0x11]
add eax, edx
mov edx, dword [esp + 0x3c]
sub eax, edx
lea edx, [eax + eax*2]
mov al, byte [esp + 0x18]
mov dword [ecx + 0xc], edx
mov dl, 3
imul dl
mov byte [ecx + 0x14], al
mov al, byte [esp + 0x1c]
imul dl
jmp 0x48144c
sub esi, eax
shl esi, 2
mov dword [ecx + 8], esi
movsx eax, byte [ebp + 0x11]
mov ebp, dword [esp + 0x3c]
add eax, edx
sub eax, ebp
shl eax, 2
mov dword [ecx + 0xc], eax
mov al, byte [esp + 0x18]
shl al, 2
mov byte [ecx + 0x14], al
mov al, byte [esp + 0x1c]
shl al, 2
mov byte [ecx + 0x15], al
mov ebx, dword [ebx + 0xc]
test ebx, ebx
mov dword [esp + 0x20], ebx
jne 0x4812e7
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
add edx, 4
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
jne 0x4812ce
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub edx, 0x48
dec eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
jne 0x4812b9
lea ecx, [esp + 0x58]
mov edx, 0x44dbf8
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
mov ebx, dword [eax]
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x481628
xor edi, edi
mov ebp, 0x44c850
test ebx, ebx
jle 0x4815bb
lea ecx, [edx + 8]
test edi, edi
mov dword [ecx + 0x18], ebp
mov dword [esp + 0x78], 0
jle 0x481540
lea eax, [edx + 0x10]
mov dword [esp + 0x2c], edi
mov edx, dword [ecx]
mov esi, dword [eax]
cmp edx, esi
jle 0x4814f5
mov ebx, dword [ecx + 4]
cmp ebx, dword [eax - 0xc]
jl 0x481505
mov ebx, dword [ecx - 4]
cmp ebx, dword [eax - 4]
jge 0x48152e
mov ebx, dword [ecx + 8]
cmp ebx, dword [eax - 8]
jl 0x48152e
inc esi
cmp edx, esi
je 0x481515
mov edx, dword [eax - 4]
mov esi, dword [ecx - 4]
dec edx
cmp esi, edx
jne 0x48152e
mov ebx, dword [esp + 0x78]
lea edx, [eax - 0x10]
mov dword [ebp], edx
mov edx, dword [eax + 8]
inc ebx
add ebp, 4
inc edx
mov dword [esp + 0x78], ebx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2c]
add eax, 0x24
dec edx
mov dword [esp + 0x2c], edx
jne 0x4814e5
mov ebx, dword [esp + 0x28]
inc edi
cmp edi, ebx
mov dword [esp + 0x34], edi
jge 0x4815a5
lea eax, [ecx + 0x2c]
sub ebx, edi
mov edx, dword [ecx]
mov esi, dword [eax]
cmp edx, esi
jle 0x48155e
mov edi, dword [ecx + 4]
cmp edi, dword [eax - 0xc]
jl 0x48156e
mov edi, dword [ecx - 4]
cmp edi, dword [eax - 4]
jge 0x481597
mov edi, dword [ecx + 8]
cmp edi, dword [eax - 8]
jl 0x481597
inc esi
cmp edx, esi
je 0x48157e
mov edx, dword [eax - 4]
mov esi, dword [ecx - 4]
dec edx
cmp esi, edx
jne 0x481597
mov edi, dword [esp + 0x78]
lea edx, [eax - 0x10]
mov dword [ebp], edx
mov edx, dword [eax + 8]
inc edi
add ebp, 4
inc edx
mov dword [esp + 0x78], edi
mov dword [eax + 8], edx
add eax, 0x24
dec ebx
jne 0x48154e
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x14], eax
add ecx, 0x24
cmp edi, ebx
jl 0x4814cf
xor eax, eax
test ebx, ebx
jle 0x4815d8
lea ecx, [edx + 0x14]
mov edx, ebx
mov esi, dword [ecx + 4]
test esi, esi
jne 0x4815d2
mov dword [ecx], eax
lea eax, [ecx - 0x14]
add ecx, 0x24
dec edx
jne 0x4815c6
test eax, eax
mov esi, 0x44d710
je 0x481618
mov ecx, eax
mov eax, dword [eax + 0x14]
add esi, 4
mov edx, dword [ecx]
mov dword [esi - 4], edx
mov edx, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x1c]
mov edi, ecx
dec ecx
test edi, edi
je 0x481614
lea edi, [ecx + 1]
mov ecx, dword [edx]
add edx, 4
mov ebp, dword [ecx + 0x18]
dec ebp
mov dword [ecx + 0x18], ebp
jne 0x481611
mov dword [ecx + 0x14], eax
mov eax, ecx
dec edi
jne 0x4815fe
test eax, eax
jne 0x4815e1
mov eax, dword [esp + 0x74]
push ebx
push 0x44d710
push eax
call fcn.00491e40
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add edx, 0x2b98
add ecx, 4
cmp edx, 0x45e188
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
jl 0x4814ab
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8