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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x96c07c]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x24]
push esi
mov dword [esp + 0x68], eax
mov esi, edx
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x2c]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x70], eax
mov eax, dword [ecx]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x54], esi
mov esi, dword [esi]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x60], edi
mov edi, dword [edi]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x50], 0
mov dword [esp + 0x40], 1
mov dword [esp + 0x2c], edi
test ecx, ecx
je 0x48144c
push dword [eax + 0x10]
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 0x5c]
push eax
call ecx
add esp, 8
test eax, eax
je 0x481448
mov eax, dword [esp + 0x3c]
mov dword [eax], 0x85
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x30], eax
mov ecx, 0x80
mov eax, dword [esp + 0x38]
mov ebx, 0xfffffffe
add eax, 4
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], eax
movzx eax, word [esi]
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], ebx
cmp ax, cx
je 0x4814a9
mov ecx, 0x81
cmp ax, cx
je 0x4814a9
mov ecx, 0x83
cmp ax, cx
je 0x4814a9
mov dword [esp + 0x44], 0
xor esi, esi
jmp 0x4814bc
movzx esi, word [edi - 4]
add edi, 4
mov dword [esp + 0x44], 1
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x14]
mov ecx, 0x88
cmp ax, cx
jne 0x4814f8
movzx eax, word [edi + 4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
mov word [esp + 0x78], ax
mov eax, dword [ecx + 0x60]
mov dword [esp + 0x74], eax
mov ax, word [ecx + 0x5e]
lea ecx, [esp + 0x74]
mov word [esp + 0x7a], ax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x60], ecx
jmp 0x4814fc
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov word [edi + 2], cx
mov ecx, dword [esp + 0x38]
add ecx, 2
lea ecx, [edi + ecx*2]
xor edi, edi
test edx, edx
lea edx, [esp + 0x84]
cmove edx, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x58], edx
cmp dword [esp + 0x44], 0
mov dword [esp + 0x10], ecx
je 0x481550
test esi, esi
je 0x481550
mov edi, 0x7d
mov word [ecx], di
mov edi, dword [esp + 0x14]
mov word [ecx + 2], si
add ecx, 4
add dword [esp + 0x84], 2
mov dword [esp + 0x10], ecx
push edx
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x58]
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x34]
lea ecx, [esp + 0xac]
call fcn.0047dda0
add esp, 0x24
test eax, eax
je 0x481431
mov ecx, dword [esp + 0x40]
mov eax, 0xffffffff
mov esi, dword [esp + 0x18]
cmovs ecx, eax
mov dword [esp + 0x40], ecx
test esi, esi
jne 0x481644
cmp word [edi], 0x78
je 0x4815d2
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], esi
jmp 0x481640
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
cmp esi, eax
jne 0x48160f
cmp ecx, edx
jne 0x48160f
test esi, esi
js 0x481625
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, ecx
xor eax, ebx
test eax, 0xfffffffd
jne 0x48163d
cmp dword [esp + 0x20], edx
jne 0x48163d
mov dword [esp + 0x20], edx
or ebx, ecx
jmp 0x481640
test esi, esi
js 0x48161d
test ebx, ebx
jns 0x48161d
mov dword [esp + 0x20], ecx
mov ebx, esi
mov dword [esp + 0x34], 0xffffffff
test eax, eax
js 0x4815ee
mov ecx, dword [esp + 0x24]
test ecx, ecx
jns 0x4815f2
mov ecx, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
jmp 0x4815f6
or ebx, 0xffffffff
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
and eax, 0xffff0000
cmp eax, 0x80010000
jne 0x4816c6
test esi, esi
je 0x481689
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
add dword [esp + 0x84], 2
add ecx, 2
movzx esi, word [edx]
add edx, 4
mov eax, dword [eax]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x58]
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x1c]
jmp 0x481522
mov ecx, dword [esp + 0x10]
mov eax, 0x78
mov word [ecx], ax
mov eax, ecx
sub eax, edi
mov edi, ecx
sar eax, 1
mov word [ecx + 2], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x80], ecx
add ecx, 4
movzx esi, word [edx]
add edx, 4
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x14], edi
jmp 0x481522
mov edi, dword [esp + 0x10]
test esi, esi
jne 0x4816fd
mov esi, edi
mov edi, dword [esp + 0x14]
sub esi, edi
sar esi, 1
nop dword [eax + eax]
movzx ecx, word [edi + 2]
mov eax, ecx
mov word [edi + 2], si
neg eax
mov esi, ecx
lea edi, [edi + eax*2]
test ecx, ecx
jne 0x4816e0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov eax, 0x79
mov word [edi], ax
mov eax, edi
sub eax, dword [esp + 0x5c]
sar eax, 1
mov word [edi + 2], ax
add edi, 4
cmp dword [esp + 0x50], 0
jle 0x481727
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x60]
mov eax, dword [eax]
mov dword [ecx + 0x60], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x64]
mov dword [eax], edi
mov eax, dword [esp + 0x60]
mov dword [eax], edx
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x34]
mov dword [ecx], eax
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, dword [esp + 0x70]
mov dword [eax], ebx
test esi, esi
je 0x481794
mov ecx, dword [esi]
mov eax, 0x7fffffeb
mov edx, dword [esp + 0x84]
sub eax, ecx
cmp eax, edx
jae 0x481790
mov eax, dword [esp + 0x3c]
mov dword [eax], 0x78
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
add ecx, edx
mov dword [esi], ecx
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret