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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x508578]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
mov esi, ecx
mov ecx, dword [ebx + 0x28]
push edi
mov edi, dword [eax + 0xc]
mov eax, 0x24924925
mul ecx
mov eax, dword [esi + 0x64]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 3
mov dword [esp + 0xa4], ecx
lea ecx, [esp + 0xac]
push ecx
push 4
lea edi, [edi*8 + 0x4f24b8]
push eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x74], esi
mov dword [esp + 0x28], edi
call fcn.004418b0
mov dword [esp + 0x78], eax
mov eax, dword [edi]
add esp, 0xc
cmp eax, 0x1429
je 0x48d9f9
jmp 0x48d1c0
lea ecx, [eax + 0x4f1088]
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov al, byte [ecx]
test al, al
je 0x48d9e4
mov byte [esp + 0x1b], 0
cmp al, 0x20
jne 0x48d1f6
jmp 0x48d1f0
inc ecx
cmp byte [ecx], 0x20
je 0x48d1f0
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x74]
push edx
push eax
push ebx
push ecx
call fcn.0048b630
mov edx, dword [esp + 0x84]
add esp, 0x10
mov ecx, eax
mov dword [esp + 0xa0], ecx
test edx, edx
je 0x48d860
test byte [edi + 4], 1
mov eax, 0
setne al
mov dword [esp + 0x70], 0
add eax, 0x7fffffff
mov dword [esp + 0x58], eax
test edx, edx
je 0x48d829
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx]
xor edi, edi
mov byte [esp + 0xf], 0
cmp eax, edi
je 0x48d7ff
push 1
push eax
push esi
call fcn.004402d0
mov ecx, dword [esi + 0x54]
movq xmm0, qword [ecx + 0x6c]
mov edx, dword [ecx + 0x7c]
add esp, 0xc
movq qword [esp + 0x78], xmm0
movq xmm0, qword [ecx + 0x74]
movq qword [esp + 0x80], xmm0
mov dword [esp + 0x88], edx
cmp eax, edi
jne 0x48d7ff
mov eax, dword [esp + 0x78]
shr eax, 0x10
cmp ax, 2
jle 0x48d7ff
movsx eax, word [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], ecx
cmp eax, edi
jle 0x48d7d3
mov ebx, dword [esp + 0x7c]
jmp 0x48d2e0
mov eax, dword [esp + 0x84]
movsx esi, word [eax + ecx*2]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x60], edx
cmp esi, edi
jle 0x48d3af
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + 4]
mov ecx, edi
test al, 3
jne 0x48d354
cmp edi, esi
jg 0x48d3af
lea eax, [ebx + edi*8 + 4]
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
jl 0x48d336
mov edx, dword [eax]
cmp edx, ebx
jl 0x48d336
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x50], edx
jg 0x48d34a
mov dword [esp + 0x50], edx
jmp 0x48d34a
mov ebx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x4c], ebx
jl 0x48d34a
mov dword [esp + 0x4c], ebx
inc ecx
add eax, 8
cmp ecx, esi
jle 0x48d319
jmp 0x48d399
cmp edi, esi
jg 0x48d3af
lea eax, [ebx + edi*8 + 4]
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
jl 0x48d37d
mov edx, dword [eax]
cmp edx, ebx
jg 0x48d37d
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x4c], edx
jl 0x48d391
mov dword [esp + 0x4c], edx
jmp 0x48d391
mov ebx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x50], ebx
jg 0x48d391
mov dword [esp + 0x50], ebx
inc ecx
add eax, 8
cmp ecx, esi
jle 0x48d360
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x7c]
cmp edx, dword [esp + 0x60]
je 0x48d3af
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x2c]
movsx eax, word [esp + 0x78]
inc ecx
lea edi, [esi + 1]
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jl 0x48d2e0
mov eax, dword [esp + 0x14]
test eax, eax
js 0x48d7d3
mov ecx, dword [ebx + eax*8]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x34], ecx
mov cl, byte [edx + eax]
and cl, 3
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], eax
cmp cl, 1
jne 0x48d3ff
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], eax
jmp 0x48d40a
or ecx, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x3c]
jle 0x48d417
dec eax
jmp 0x48d41b
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + eax*8 + 4]
mov edx, dword [esp + 0x10]
mov esi, ecx
sub esi, edx
jns 0x48d42d
mov esi, edx
sub esi, ecx
cmp esi, 5
jle 0x48d44e
mov edx, dword [ebx + eax*8]
mov edi, dword [esp + 0x34]
mov ecx, edx
sub ecx, edi
jns 0x48d443
mov ecx, edi
sub ecx, edx
lea edx, [esi + esi*4]
add edx, edx
add edx, edx
cmp ecx, edx
jle 0x48d479
mov ecx, dword [esp + 0x80]
mov dl, byte [eax + ecx]
and dl, 3
mov dword [esp + 0x28], eax
cmp dl, 1
jne 0x48d473
cmp dword [esp + 0x38], 0
mov dword [esp + 0x24], eax
jge 0x48d473
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x14]
jne 0x48d40e
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
cmp esi, dword [esp + 0x20]
jge 0x48d48e
inc esi
jmp 0x48d492
mov esi, dword [esp + 0x3c]
mov eax, dword [ebx + esi*8 + 4]
mov edx, eax
sub edx, ecx
jns 0x48d4a0
mov edx, ecx
sub edx, eax
cmp edx, 5
jle 0x48d4c1
mov ecx, dword [ebx + esi*8]
mov eax, ecx
sub eax, edi
jns 0x48d4b2
mov eax, edi
sub eax, ecx
lea ecx, [edx + edx*4]
add ecx, ecx
add ecx, ecx
cmp eax, ecx
jle 0x48d4ea
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x80]
mov al, byte [esi + edx]
and al, 3
mov dword [esp + 0x48], esi
cmp al, 1
jne 0x48d4e4
cmp dword [esp + 0x24], 0
mov dword [esp + 0x38], esi
jge 0x48d4e4
mov dword [esp + 0x24], esi
cmp esi, dword [esp + 0x14]
jne 0x48d485
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + 4]
mov dword [esp + 0x2c], esi
test al, 0x10
je 0x48d75e
mov edx, dword [esp + 0x54]
mov ecx, dword [edx + 0x28]
mov eax, 0x51eb851f
mul ecx
mov eax, dword [esp + 0x48]
mov esi, dword [ebx + eax*8]
shr edx, 3
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + edx*8]
mov edi, esi
sub edi, eax
jns 0x48d52b
sub eax, esi
jmp 0x48d52d
mov eax, edi
cmp eax, dword [esp + 0x60]
jge 0x48d75e
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
mov edx, edi
add eax, 2
sub edx, esi
cmp eax, edx
jg 0x48d75e
mov edx, dword [esp + 0x34]
shr ecx, 2
xor eax, eax
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
mov eax, ecx
cmp eax, esi
jle 0x48d57b
dec eax
jmp 0x48d57d
mov eax, edi
cmp dword [ebx + eax*8], edx
jne 0x48d58b
cmp eax, ecx
jne 0x48d574
jmp 0x48d7ff
cmp eax, ecx
je 0x48d7ff
mov ecx, dword [esp + 0x34]
cmp dword [ebx + eax*8], ecx
mov eax, dword [esp + 0x48]
setl byte [esp + 0x43]
mov dword [esp + 0x14], eax
mov byte [esp + 0xf], 0
lea esp, [esp]
cmp byte [esp + 0xf], 0
jne 0x48d5e7
mov edx, dword [esp + 0x80]
mov cl, byte [eax + edx]
and cl, 3
mov dword [esp + 0x14], eax
cmp cl, 1
jne 0x48d5d7
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
jmp 0x48d5e2
or ecx, 0xffffffff
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], ecx
mov byte [esp + 0xf], 1
cmp eax, dword [esp + 0x20]
jge 0x48d5f0
inc eax
jmp 0x48d5f4
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [ebx + edx*8 + 4]
mov esi, edi
sub esi, ecx
jns 0x48d60a
mov esi, ecx
sub esi, edi
cmp esi, dword [esp + 0xa8]
jle 0x48d61d
mov byte [esp + 0xf], 0
jmp 0x48d6aa
mov esi, dword [ebx + eax*8 + 4]
mov edi, esi
sub edi, ecx
jns 0x48d631
sub ecx, esi
mov edx, ecx
mov dword [esp + 0x34], edx
jmp 0x48d637
mov edx, edi
mov dword [esp + 0x34], edi
cmp edx, 5
jle 0x48d664
mov esi, dword [ebx + eax*8]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ebx + ecx*8]
mov edi, esi
sub edi, ecx
jns 0x48d650
sub ecx, esi
jmp 0x48d652
mov ecx, edi
lea edx, [edx + edx*4]
add edx, edx
add edx, edx
cmp ecx, edx
jg 0x48d664
mov byte [esp + 0xf], 0
jmp 0x48d6aa
mov ecx, dword [esp + 0x80]
mov dl, byte [eax + ecx]
and dl, 3
cmp dl, 1
jne 0x48d685
cmp dword [esp + 0x30], 0
mov dword [esp + 0x44], eax
jge 0x48d685
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
mov esi, dword [ebx + eax*8]
mov ecx, dword [ebx + ecx*8]
cmp ecx, esi
mov edi, esi
setl dl
sub edi, ecx
jns 0x48d69e
sub ecx, esi
mov edi, ecx
cmp dl, byte [esp + 0x43]
jne 0x48d6aa
cmp edi, dword [esp + 0x60]
jge 0x48d6b9
cmp eax, dword [esp + 0x28]
jne 0x48d5b0
jmp 0x48d75e
mov ecx, dword [esp + 0x14]
mov esi, dword [ebx + ecx*8 + 4]
mov edi, dword [ebx + ecx*8]
cmp eax, dword [esp + 0x20]
jge 0x48d6cd
inc eax
jmp 0x48d6d1
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx + eax*8 + 4]
mov ecx, edx
sub ecx, esi
jns 0x48d6df
mov ecx, esi
sub ecx, edx
cmp ecx, 5
jle 0x48d704
mov edx, dword [esp + 0x2c]
mov edx, dword [ebx + edx*8]
mov ecx, edx
sub ecx, edi
jns 0x48d6f5
mov ecx, edi
sub ecx, edx
mov edx, dword [esp + 0x34]
lea edx, [edx + edx*4]
add edx, edx
add edx, edx
cmp ecx, edx
jle 0x48d731
mov ecx, dword [esp + 0x80]
mov dl, byte [eax + ecx]
and dl, 3
mov dword [esp + 0x44], eax
cmp dl, 1
jne 0x48d729
cmp dword [esp + 0x30], 0
mov dword [esp + 0x44], eax
jge 0x48d729
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x28]
jne 0x48d6c4
jmp 0x48d73e
cmp eax, dword [esp + 0x3c]
jle 0x48d73a
dec eax
jmp 0x48d73e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], eax
cmp dword [esp + 0x24], 0
jl 0x48d796
cmp dword [esp + 0x38], 0
jl 0x48d796
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
mov ecx, dword [ebx + ecx*8]
mov eax, dword [ebx + edx*8]
mov edx, ecx
sub edx, eax
jns 0x48d784
sub eax, ecx
jmp 0x48d786
mov eax, edx
cmp eax, dword [esp + 0xa4]
jle 0x48d796
mov byte [esp + 0xf], 0
jmp 0x48d7d3
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x28]
mov dl, byte [eax + ecx]
and dl, 3
cmp dl, 1
jne 0x48d7c2
mov ecx, dword [esp + 0x48]
mov dl, byte [eax + ecx]
and dl, 3
cmp dl, 1
jne 0x48d7c2
mov byte [esp + 0xf], 0
jmp 0x48d7d3
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + 4]
mov byte [esp + 0xf], 1
test al, 4
jne 0x48d7ff
mov ecx, dword [esp + 0x1c]
test byte [ecx + 4], 1
mov edx, dword [esp + 0x58]
je 0x48d7e9
cmp dword [esp + 0x10], edx
jle 0x48d7ff
jmp 0x48d7ef
cmp dword [esp + 0x10], edx
jge 0x48d7ff
mov cl, byte [esp + 0xf]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x1b], cl
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
inc eax
mov dword [esp + 0x70], eax
cmp eax, dword [esp + 0x74]
jb 0x48d247
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
cmp eax, 0x80000000
je 0x48d860
cmp eax, 0x7fffffff
je 0x48d860
cmp byte [esp + 0x1b], 0
je 0x48d850
mov edx, dword [esp + 0x5c]
mov dword [esp + edx*4 + 0x180], eax
inc edx
mov dword [esp + 0x5c], edx
jmp 0x48d860
mov edx, dword [esp + 0x64]
mov dword [esp + edx*4 + 0xb0], eax
inc edx
mov dword [esp + 0x64], edx
mov al, byte [ecx]
test al, al
jne 0x48d1e2
cmp dword [esp + 0x64], 0
jne 0x48d87c
cmp dword [esp + 0x5c], 0
je 0x48d9e4
mov ebx, dword [esp + 0x5c]
mov esi, 1
cmp ebx, esi
jbe 0x48d8c8
lea esp, [esp]
mov eax, esi
test esi, esi
je 0x48d8c3
jmp 0x48d8a0
mov ecx, dword [esp + eax*4 + 0x17c]
mov edx, dword [esp + eax*4 + 0x180]
cmp edx, ecx
jge 0x48d8c3
dec eax
mov dword [esp + eax*4 + 0x184], ecx
mov dword [esp + eax*4 + 0x180], edx
jne 0x48d8a0
inc esi
cmp esi, ebx
jb 0x48d890
mov edi, dword [esp + 0x64]
mov esi, 1
cmp edi, esi
jbe 0x48d908
mov eax, esi
test esi, esi
je 0x48d903
jmp 0x48d8e0
mov ecx, dword [esp + eax*4 + 0xac]
mov edx, dword [esp + eax*4 + 0xb0]
cmp edx, ecx
jge 0x48d903
dec eax
mov dword [esp + eax*4 + 0xb4], ecx
mov dword [esp + eax*4 + 0xb0], edx
jne 0x48d8e0
inc esi
cmp esi, edi
jb 0x48d8d5
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 0x24ec]
lea ecx, [eax + eax*8]
inc eax
lea ecx, [edx + ecx*4 + 0x24f0]
mov dword [edx + 0x24ec], eax
test edi, edi
jne 0x48d937
shr ebx, 1
mov eax, dword [esp + ebx*4 + 0x180]
mov dword [ecx + 0xc], eax
mov dword [ecx], eax
jmp 0x48d960
shr edi, 1
test ebx, ebx
jne 0x48d94b
mov eax, dword [esp + edi*4 + 0xb0]
mov dword [ecx + 0xc], eax
mov dword [ecx], eax
jmp 0x48d960
mov edx, dword [esp + edi*4 + 0xb0]
shr ebx, 1
mov eax, dword [esp + ebx*4 + 0x180]
mov dword [ecx], edx
mov dword [ecx + 0xc], eax
mov esi, dword [ecx]
mov edi, dword [esp + 0x1c]
cmp dword [ecx + 0xc], esi
je 0x48d998
mov eax, dword [ecx + 0xc]
movzx edx, word [edi + 4]
cmp eax, esi
setg bl
test dl, 3
jne 0x48d980
xor edx, edx
jmp 0x48d985
mov edx, 1
movzx ebx, bl
xor ebx, edx
je 0x48d998
add eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ecx + 0xc], eax
mov dword [ecx], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], 0
test byte [edi + 4], 1
je 0x48d9ba
mov dword [ecx + 0x20], 2
test byte [edi + 4], 2
je 0x48d9c4
or dword [ecx + 0x20], 4
test byte [edi + 4], 4
je 0x48d9ce
or dword [ecx + 0x20], 8
test byte [edi + 4], 8
je 0x48d9d8
or dword [ecx + 0x20], 0x10
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x68]
mov eax, dword [edi + 8]
add edi, 8
mov dword [esp + 0x1c], edi
cmp eax, 0x1429
jne 0x48d1c0
mov ecx, dword [esp + 0x6c]
mov edx, dword [esi + 0x64]
push ecx
push edx
call fcn.0043fac0
mov edi, dword [ebx + 0x24ec]
add esp, 8
test edi, edi
je 0x48da74
xor eax, eax
test edi, edi
je 0x48da2e
mov edx, edi
lea ecx, [ebx + 0x24f0]
mov dword [esp + eax*4 + 0x78], ecx
inc eax
add ecx, 0x24
cmp eax, edx
jb 0x48da22
push edi
lea esi, [esp + 0x7c]
call fcn.004895c0
add esp, 4
xor ecx, ecx
dec edi
je 0x48da74
mov bl, 6
mov eax, dword [esp + ecx*4 + 0x78]
lea edx, [eax + 0xc]
test byte [eax + 0x20], bl
jne 0x48da50
mov edx, eax
mov eax, dword [esp + ecx*4 + 0x7c]
test byte [eax + 0x20], bl
je 0x48da5c
add eax, 0xc
mov eax, dword [eax]
cmp dword [edx], eax
jle 0x48da64
mov dword [edx], eax
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x24ec]
inc ecx
dec edx
cmp ecx, edx
jb 0x48da42
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00493576
mov esp, ebp
pop ebp
ret