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

Disassembly:
push 0xffffffffffffffff
push 0x4ebad3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x68]
mov eax, dword [ebx]
push ebp
push esi
push edi
mov esi, ecx
mov di, word [esi + 8]
xor di, 0x2a
sub di, word [eax]
neg di
sbb edi, edi
inc edi
mov dword [esp + 0x3c], edi
je 0x4890c0
add eax, 2
mov dword [ebx], eax
push ebx
mov ecx, esi
call fcn.0041f651
mov edx, dword [esp + 0x78]
and edx, 1
push ebx
mov ecx, esi
mov dword [esp + 0x7c], edx
call fcn.0041f651
mov eax, dword [ebx]
xor ebp, ebp
cmp eax, ebp
jne 0x4890fd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret 0x10
and word [esi + 0x84], 0x1ef
cmp edi, ebp
mov dword [esp + 0x34], ebp
jne 0x48913c
push 0x98
call fcn.004cc845
add esp, 4
mov dword [esp + 0x4c], eax
cmp eax, ebp
mov dword [esp + 0x68], ebp
je 0x489132
push ebp
push esi
mov ecx, eax
call fcn.00432f6c
jmp 0x489134
xor eax, eax
cmp eax, ebp
mov dword [esp + 0x34], eax
jne 0x48913e
mov eax, esi
mov ecx, dword [esi + 0x2c]
mov dword [eax + 0x2c], ecx
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], eax
call fcn.00445860
cmp edi, ebp
mov ecx, 1
mov dword [esp + 0x68], ecx
je 0x489163
mov dword [esp + 0x50], ebp
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x7c]
cmp eax, ebp
mov byte [esp + 0x68], 2
je 0x48919b
cmp word [eax], bp
je 0x48919b
push ecx
push ebp
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x23], 1
call fcn.00452ca0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dl, byte [esi + 0x84]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x38]
push 2
mov byte [esp + 0x80], dl
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
call fcn.00449130
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], ebp
je 0x4891de
mov word [ebp], 0
test edi, edi
mov byte [esp + 0x68], 3
je 0x489231
mov al, byte [esp + 0x13]
test al, al
je 0x489222
lea edi, [esi + 0x3c]
mov eax, ebp
mov ebp, dword [edi]
mov dword [edi], eax
mov dword [esi + 0x34], 0
mov edx, dword [edi]
push edx
mov eax, 0x22
mov dword [esp + 0x28], ebp
call fcn.00449190
add esp, 4
test eax, eax
mov dword [edi], eax
je 0x48921f
mov word [eax + 0x20], 0
mov dword [esi + 0x38], edi
mov eax, dword [esp + 0x14]
mov word [eax + 0x84], 0
jmp 0x489235
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x48924b
mov ecx, dword [esi + 0x38]
mov dword [eax + 0x38], ecx
mov edx, dword [esi + 0x34]
mov dword [eax + 0x34], edx
jmp 0x48925b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push 0
push eax
call fcn.0045b8a0
mov al, byte [esi + 0xe]
test al, al
mov dword [esp + 0x38], 0
jns 0x489274
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], ecx
jmp 0x489278
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x78]
test eax, eax
je 0x489296
mov edx, dword [ebx]
mov ecx, dword [esp + 0x14]
push edx
push 1
push ebx
call fcn.00421c87
mov edi, eax
jmp 0x4896ce
mov ebp, dword [ebx]
mov dword [esp + 0x78], ebp
mov ax, word [ebp]
cmp ax, word [esi + 0x48]
je 0x4896c0
lea ebx, [ebx]
mov ecx, dword [esp + 0x14]
cmp word [ecx + 0x84], 0
je 0x4892c3
mov byte [esp + 0x12], 1
mov cx, word [esi + 0x56]
mov ax, word [ebp]
cmp cx, ax
jne 0x48935f
lea edx, [esp + 0x78]
lea edi, [ebp + 2]
push edx
mov ecx, esi
mov dword [esp + 0x7c], edi
call fcn.0041f651
mov ebp, dword [esp + 0x78]
lea eax, [esi + 0x6a]
push eax
push ebp
mov dword [ebx], ebp
call fcn.00448060
add esp, 8
test eax, eax
je 0x4896c0
lea ecx, [esi + 0x5a]
push ecx
push ebp
call fcn.00448060
add esp, 8
test eax, eax
je 0x4896c0
mov al, byte [esp + 0x12]
test al, al
je 0x48932a
inc dword [esp + 0x18]
mov dword [ebx], ebp
jmp 0x4896b2
cmp word [ebp], 0
je 0x489358
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x14]
push 0x4efd50
push 0
lea edx, [esp + 0x80]
push edx
push eax
mov dword [esp + 0x88], edi
call fcn.00489080
mov ebp, dword [esp + 0x78]
mov dword [ebx], ebp
jmp 0x4896b2
cmp word [esi + 0x7a], ax
jne 0x4894f9
mov cx, word [esi + 0x7c]
cmp cx, word [ebp + 2]
jne 0x4894f9
lea edx, [esp + 0x78]
mov ebx, ebp
add ebp, 4
push edx
mov ecx, esi
mov dword [esp + 0x7c], ebp
call fcn.0041f651
mov edi, dword [esp + 0x78]
mov ax, word [edi]
test ax, ax
je 0x4893b9
cmp ax, 0xd
je 0x4893b9
cmp ax, 0xa
je 0x4893b9
cmp word [esi + 0x56], ax
je 0x4893b9
add edi, 2
mov dword [esp + 0x78], edi
mov ax, word [edi]
test ax, ax
jne 0x489398
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x24], edi
call fcn.0041f651
mov ebp, dword [esp + 0x20]
mov ax, word [esi + 0x56]
cmp ax, word [ebp]
jne 0x4894b5
sub edi, ebx
sar edi, 1
push edi
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
call fcn.00449600
lea ecx, [esp + 0x78]
push ecx
add ebp, 2
mov ecx, esi
mov byte [esp + 0x6c], 4
mov dword [esp + 0x7c], ebp
call fcn.0041f651
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
lea eax, [esi + 0x6a]
push eax
push edi
mov dword [edx], edi
call fcn.00448060
add esp, 8
test eax, eax
je 0x489492
lea ecx, [esi + 0x5a]
push ecx
push edi
call fcn.00448060
add esp, 8
test eax, eax
je 0x489492
mov al, byte [esp + 0x12]
test al, al
je 0x489444
inc dword [esp + 0x18]
jmp 0x489471
cmp word [edi], 0
je 0x489471
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x2c]
push edx
push 0
lea eax, [esp + 0x80]
push eax
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x88], ebp
call fcn.00489080
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x20]
mov dword [edx], edi
mov byte [esp + 0x68], 3
call fcn.00443880
mov ebp, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
jmp 0x4896b2
mov eax, dword [esp + 0x20]
test eax, eax
mov byte [esp + 0x68], 3
je 0x4894b5
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x78]
mov di, word [edi]
cmp di, word [esi + 0x52]
je 0x4894d0
cmp di, word [esi + 0x54]
je 0x4894d0
cmp di, word [esi + 0x4a]
je 0x4894d0
cmp di, word [esi + 0x50]
jne 0x4894dc
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call fcn.0041f680
lea edx, [esp + 0x78]
push edx
mov ecx, esi
call fcn.0041f651
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
mov dword [eax], ebp
mov ebx, eax
jmp 0x4896b2
cmp word [esi + 0x58], ax
jne 0x489537
lea ecx, [esp + 0x78]
push ecx
add ebp, 2
mov ecx, esi
mov dword [esp + 0x7c], ebp
call fcn.0041f651
mov al, byte [esp + 0x12]
test al, al
mov edx, dword [esp + 0x78]
mov dword [ebx], edx
je 0x4896c0
mov eax, dword [esp + 0x18]
dec eax
test eax, eax
mov dword [esp + 0x18], eax
jle 0x4896c0
jmp 0x489574
lea eax, [esi + 0x5a]
push eax
push ebp
call fcn.00448060
add esp, 8
test eax, eax
jne 0x48955f
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call fcn.004486c0
mov ebp, dword [esp + 0x78]
mov dword [ebx], eax
jmp 0x4896b2
lea edx, [esi + 0x6a]
push edx
push ebp
call fcn.00448060
add esp, 8
test eax, eax
je 0x4896c0
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call fcn.0041f680
mov al, byte [esp + 0x13]
test al, al
mov byte [esp + 0x2c], 0
je 0x4895d5
mov ecx, dword [esp + 0x78]
cmp ecx, dword [ebx]
jb 0x4895c3
mov dx, word [esi + 0x52]
lea esp, [esp]
mov ax, word [ecx]
cmp ax, dx
je 0x4895ba
cmp ax, word [esi + 0x54]
je 0x4895ba
cmp ax, word [esi + 0x4a]
je 0x4895ba
cmp ax, word [esi + 0x50]
jne 0x4895c3
mov eax, dword [ebx]
sub ecx, 2
cmp ecx, eax
jae 0x4895a0
mov dx, word [esi + 0x58]
cmp dx, word [ecx]
jne 0x4895d5
mov dword [esp + 0x78], ecx
mov byte [esp + 0x2c], 1
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
push eax
lea ecx, [esp + 0x7c]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
mov byte [esp + 0x78], 5
call fcn.004215c7
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ax, word [edi]
test ax, ax
je 0x489653
cmp ax, 0x2f
je 0x489653
cmp ax, 0x3b
je 0x489653
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x80]
push edx
mov ecx, esi
call fcn.00454350
cmp word [eax], 0
je 0x489653
mov cl, byte [esp + 0x12]
test cl, cl
jne 0x489653
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x7c]
push edx
push 0
push eax
call fcn.00437b3d
test byte [esi + 0xf], 1
mov edi, dword [esp + 0x1c]
je 0x489678
test edi, edi
je 0x489678
mov ecx, dword [edi - 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call fcn.0041f651
test edi, edi
mov ebp, dword [esp + 0x78]
mov dword [ebx], ebp
mov byte [esp + 0x68], 3
je 0x4896aa
mov ecx, dword [0x51d3c8]
add edi, 0xfffffff8
push edi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x1c], 0
mov dx, word [ebp]
cmp dx, word [esi + 0x48]
jne 0x4892b0
push ebx
mov ecx, esi
call fcn.0041f651
mov ebp, dword [esp + 0x24]
xor edi, edi
movsx cx, byte [esp + 0x7c]
mov eax, dword [esp + 0x14]
or cx, word [eax + 0x84]
and ecx, 0x1ef
mov word [esi + 0x84], cx
mov cl, byte [eax + 0x86]
test cl, cl
je 0x489702
mov edx, dword [eax + 0x88]
mov dword [esi + 0x88], edx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x48973a
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
test al, al
mov dword [esi + 0x20], ecx
je 0x48973a
mov edx, dword [esp + 0x48]
mov eax, ebp
mov ebp, dword [esi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], ebp
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
mov esi, dword [esp + 0x34]
test esi, esi
je 0x489752
mov ecx, esi
call fcn.00416681
push esi
call fcn.004cc875
add esp, 4
test ebp, ebp
je 0x489769
mov ecx, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x489784
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], 0xffffffff
call fcn.004597a0
mov ecx, dword [esp + 0x60]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0x10