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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4a72a4]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x30], ebx
test edi, edi
jne 0x486204
mov eax, 0x80004003
jmp 0x48685a
mov al, byte [ebx + 0x40]
and al, 4
mov byte [esp + 0x13], 1
movzx edx, al
neg edx
push 0x54
sbb edx, edx
xor eax, eax
and edx, 0x7ff8fff3
mov word [edi], ax
add edx, 0x8007000d
xor ecx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 8]
pop esi
mov dword [esp + 0x20], esi
test edx, 0x400
je 0x486383
test byte [ebx + 0x40], 0x20
jne 0x486377
mov eax, dword [ebx + 0x3c]
lea edx, [esp + 0x28]
mov esi, dword [ebx + 0x38]
push ecx
push ecx
push ecx
push eax
push esi
push 9
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
pop ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], eax
call fcn.0048759e
test al, al
mov eax, dword [esp + 0x14]
je 0x486297
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
cmp ecx, esi
jne 0x486297
mov esi, dword [esp + 0x2c]
cmp esi, eax
je 0x486313
mov esi, dword [esp + 0x1c]
and dword [esp + 0x14], 0x3f
mov ecx, esi
shrd ecx, eax, 0x10
and esi, 0xff000000
movzx edx, cl
xor ecx, ecx
mov eax, edx
shld ecx, eax, 0x10
shl eax, 0x10
add esi, eax
mov eax, dword [esp + 0x14]
adc eax, ecx
xor ecx, ecx
or edx, ecx
mov dword [esp + 0x14], eax
je 0x4862e3
push ecx
push ecx
push ecx
push eax
push esi
push 0xa
lea edx, [esp + 0x40]
pop ecx
call fcn.0048759e
test al, al
jne 0x486307
mov eax, dword [esp + 0x14]
xor ecx, ecx
push ecx
push ecx
push ecx
and eax, 0x3f
lea edx, [esp + 0x34]
push eax
and esi, 0xff000000
push esi
push 0xb
pop ecx
call fcn.0048759e
test al, al
jne 0x486307
xor ecx, ecx
xor esi, esi
jmp 0x48630f
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov eax, ecx
or eax, esi
je 0x48636f
push esi
push ecx
lea ecx, [esp + 0x40]
call fcn.004857e0
mov eax, dword [esp + 0x24]
and esi, 0x3f
push esi
and eax, 0xff000000
mov ecx, 0x417008
push eax
push 0xf
pop edx
call fcn.00487529
neg eax
lea ecx, [esp + 0x38]
push edi
sbb eax, eax
and eax, 0xffffff8a
add eax, 0x7f
push eax
call fcn.004861d4
push dword [esp + 0x44]
mov esi, eax
mov dword [esp + 0x3c], 0x402a08
call sub.msvcrt.dll_free
pop ecx
mov eax, esi
jmp 0x48685a
mov edx, dword [ebp + 8]
xor ecx, ecx
push 0x54
pop esi
xor edx, 0x400
or edx, 0x7f
mov dword [ebp + 8], edx
test dl, dl
jns 0x486392
xor edx, 0x80
or edx, 0x7f
jmp 0x48639c
cmp edx, 4
jne 0x48639f
mov edx, 0x104
mov dword [ebp + 8], edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
test eax, eax
js 0x486851
mov ecx, dword [esp + 0x24]
cmp ecx, 8
jae 0x486851
xor eax, eax
inc eax
shl eax, cl
and eax, edx
mov dword [esp + 0x14], eax
je 0x486832
mov eax, ecx
xor ecx, ecx
sub eax, ecx
je 0x4866e5
sub eax, 1
je 0x4866d2
sub eax, 1
je 0x4865a3
sub eax, 1
je 0x4864b7
sub eax, 1
jne 0x48679d
cmp dword [ebx + 0x10], ecx
jne 0x48679d
movzx ecx, word [ebx + 0x2e]
mov dword [esp + 0x14], ecx
cmp ecx, 0x51
je 0x48641f
push 0x4b
pop eax
cmp cx, ax
jne 0x486832
cmp byte [esp + 0x13], 0
jne 0x486436
push 0x2d
pop eax
mov word [edi], ax
add edi, 2
dec esi
mov dword [esp + 0x20], esi
jmp 0x48643b
mov byte [esp + 0x13], 0
push 0x4b
pop ebx
mov eax, 0x411034
cmp cx, bx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
jne 0x486459
mov eax, 0x411040
mov dword [esp + 0x1c], eax
push 0x4b
xor ecx, ecx
pop edx
cmp word [esp + 0x14], dx
mov edx, dword [ebp + 8]
setne cl
lea ecx, [ecx*2 + 7]
jmp 0x486497
test ecx, ecx
je 0x4864a4
cmp byte [eax], 0
mov edx, dword [ebp + 8]
je 0x48649b
mov al, byte [eax]
cbw
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 0x1c]
inc eax
dec esi
mov dword [esp + 0x1c], eax
dec ecx
mov dword [esp + 0x20], esi
test esi, esi
jne 0x486472
test ecx, ecx
je 0x4864a4
cmp byte [eax], 0
je 0x4864ac
mov dword [esp + 0x18], 0x8007000d
xor edx, 0x10
mov dword [ebp + 8], edx
jmp 0x486832
cmp dword [ebx + 0x10], ecx
jne 0x48679d
mov ecx, dword [ebx + 0x38]
mov edx, 0x154
mov eax, dword [ebx + 0x3c]
shrd ecx, eax, 7
mov eax, 0x1ff
and cx, ax
movzx ecx, cx
lea eax, [ecx - 1]
cmp ax, dx
ja 0x486832
mov ax, word [ecx*2 + 0x41140e]
shr ax, 1
movzx eax, ax
mov dword [esp + 0x1c], eax
test ax, ax
je 0x486832
shr eax, 0xc
and eax, 0xffffff01
movzx ecx, al
mov dword [esp + 0x34], eax
add ecx, 2
xor al, 1
cmp byte [esp + 0x13], 0
mov byte [esp + 0x14], al
jne 0x486530
push 0x2d
pop edx
mov word [edi], dx
add edi, 2
dec esi
mov dword [esp + 0x20], esi
jmp 0x486535
mov byte [esp + 0x13], 0
test esi, esi
je 0x486832
test ecx, ecx
je 0x486832
movzx esi, al
dec ecx
movzx edx, cl
mov dword [esp + 0x28], ecx
lea eax, [esi + 4]
shl esi, 4
movzx ecx, al
add esi, 0xf
imul ecx, edx
xor eax, eax
mov edx, dword [esp + 0x1c]
shr dx, cl
and dx, si
cmp byte [esp + 0x34], al
sete al
dec eax
and eax, 0xffffffef
sub ax, 0xffc0
add dx, ax
movzx eax, dx
test ax, ax
je 0x4866c4
mov ecx, dword [esp + 0x28]
mov word [edi], ax
add edi, 2
sub dword [esp + 0x20], 1
mov al, byte [esp + 0x14]
jne 0x48653d
jmp 0x486832
cmp dword [ebx + 0x10], ecx
je 0x4865bb
cmp byte [ebx + 0x1d], cl
je 0x4865bb
test byte [ebx + 0x40], 0x20
je 0x4865d4
cmp edx, 0x104
jne 0x4865d4
mov ecx, dword [esp + 0x14]
test dword [ebx + 0x14], ecx
jne 0x4865ed
mov eax, edx
and eax, 0x104
cmp eax, 0x104
je 0x4865ed
jmp 0x4865d8
mov ecx, dword [esp + 0x14]
test dword [ebx + 0x14], ecx
jne 0x4867a1
cmp edx, 0x104
jne 0x4867a1
movzx ecx, byte [ebx + 0x3a]
mov eax, 0xee
cmp cx, ax
jae 0x486832
cmp byte [ebx + 0x32], 0
je 0x486616
mov eax, edx
mov edx, 0x104
and eax, edx
cmp eax, edx
jne 0x486832
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, 4
cmp esi, eax
jb 0x4866c4
test cx, cx
jne 0x486634
mov ecx, 0xec
movzx eax, cx
push 4
mov edx, dword [eax*4 + 0x41104c]
mov dword [esp + 0x2c], edx
pop eax
test edx, edx
je 0x486832
cmp byte [esp + 0x13], 0
jne 0x486664
push 0x2d
pop ecx
mov word [edi], cx
add edi, 2
dec esi
mov dword [esp + 0x20], esi
jmp 0x486669
mov byte [esp + 0x13], 0
test esi, esi
je 0x486832
push 0x14
pop ecx
test ecx, ecx
je 0x486832
dec eax
sub ecx, 5
mov dword [esp + 0x1c], eax
shr edx, cl
push 0x1f
pop eax
and edx, eax
xor eax, eax
cmp dword [esp + 0x1c], 3
setne al
dec eax
and eax, 0xffffffe0
sub ax, 0xffa0
add dx, ax
movzx eax, dx
test ax, ax
je 0x4866c4
mov edx, dword [esp + 0x28]
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 0x1c]
sub esi, 1
mov dword [esp + 0x20], esi
jne 0x486674
jmp 0x486832
mov eax, 0x8007000d
mov dword [esp + 0x18], eax
jmp 0x486836
cmp dword [ebx + 0x10], ecx
jne 0x48679d
test byte [ebx + 0x14], 2
je 0x486832
cmp dword [ebx + 0x10], ecx
jne 0x48679d
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x3c]
shrd ecx, eax, 0x18
and ecx, 0x3fff
lea eax, [ecx - 1]
cmp eax, 0x21c4
ja 0x486832
mov al, byte [esp + 0x13]
test al, al
je 0x486728
mov ax, word [ecx*2 + 0x4116be]
shr ax, 1
movzx ecx, ax
mov al, byte [esp + 0x13]
jmp 0x48672c
movzx ecx, word [ebx + 0x30]
mov dword [esp + 0x1c], ecx
test cx, cx
je 0x48682d
test al, al
jne 0x48674b
push 0x2d
pop eax
mov word [edi], ax
add edi, 2
dec esi
mov dword [esp + 0x20], esi
mov eax, 0x3ff
cmp ax, cx
sbb eax, eax
neg eax
add eax, 2
mov dword [esp + 0x28], eax
test esi, esi
je 0x48682d
mov ebx, eax
test ebx, ebx
je 0x486794
dec ebx
mov edx, ecx
movzx eax, bl
imul eax, eax, 5
push 0x1f
mov cx, ax
shr dx, cl
mov ecx, dword [esp + 0x20]
pop eax
and dx, ax
add dx, 0x60
mov word [edi], dx
add edi, 2
sub esi, 1
jne 0x486768
mov ebx, dword [esp + 0x30]
jmp 0x486829
mov ecx, dword [esp + 0x14]
cmp dword [ebx + 0x10], 0
je 0x486832
cmp byte [esp + 0x13], 0
je 0x4867d1
test byte [ebx + 0x40], 0x10
je 0x4867d1
mov eax, edx
push 0x1f
pop edx
and eax, edx
cmp al, dl
jne 0x4867d1
mov ax, word [ebx + 0x26]
mov dword [esp + 0x24], 9
jmp 0x4867df
test dword [ebx + 0x14], ecx
je 0x486832
mov eax, dword [esp + 0x24]
mov ax, word [ebx + eax*2 + 0x18]
cmp byte [esp + 0x13], 0
mov word [esp + 0x14], ax
jne 0x4867f9
test al, al
je 0x48684a
mov cl, byte [esp + 0x15]
dec al
inc cl
jmp 0x4867fd
mov cl, byte [esp + 0x15]
movzx ecx, cl
mov dword [esp + 0x28], ecx
cmp ecx, esi
jae 0x486832
push ecx
mov ecx, dword [ebx + 0x10]
mov edx, esi
movzx eax, al
lea eax, [ecx + eax*2]
mov ecx, edi
push eax
call fcn.00485274
test eax, eax
js 0x486832
mov eax, dword [esp + 0x28]
sub esi, eax
lea edi, [edi + eax*2]
mov dword [esp + 0x20], esi
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x18]
inc dword [esp + 0x24]
test eax, eax
js 0x486851
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x20]
jmp 0x4863af
mov eax, 0x8007000d
jmp 0x48685a
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004981f0
mov esp, ebp
pop ebp
ret 8