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

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov edx, dword [esp + 0x4c]
xor eax, eax
push ebx
mov ebx, dword [edx]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
push ebp
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x44], eax
lea edx, [ecx + 6]
mov eax, 0xfffffffe
push esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0xc], edx
cmp byte [ebx], 0x7f
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0x20], eax
jne 0x481274
movzx eax, byte [ebx + 3]
movzx edx, byte [ebx + 4]
shl eax, 8
or eax, edx
mov dword [esp + 0x34], eax
mov word [esp + 0x48], ax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x44], eax
xor edx, edx
lea eax, [esp + 0x44]
mov word [esp + 0x4a], dx
mov dword [ebp + 0x20], eax
mov esi, dword [esp + 0x88]
lea eax, [ebx + 1]
mov byte [eax], 0
mov dword [esp + 0x3c], eax
lea eax, [ebx + 2]
neg esi
mov byte [eax], 0
mov edi, dword [ebp + 0x38]
lea ebx, [ebx + ecx + 3]
sbb esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], edi
and esi, ecx
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x84], ebx
je 0x4812bd
mov edx, dword [esp + 0x38]
mov dword [ebp + 0x38], edx
cmp dword [esp + 0x68], 0
je 0x4812e0
mov byte [ebx], 0x76
inc ebx
mov word [ebx], 0
mov dword [esp + 0x30], ebx
add ebx, 2
add dword [esp + 0x10], 3
mov dword [esp + 0x84], ebx
mov eax, dword [esp + 0x74]
push esi
push ebp
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.0047db80
add esp, 0x28
test eax, eax
je 0x48149e
mov eax, dword [ebp + 0x38]
cmp eax, edi
jle 0x481328
mov dword [esp + 0x28], eax
cmp dword [esp + 0x88], 0
mov ebx, dword [esp + 0x84]
mov eax, dword [esp + 0x14]
jne 0x481402
cmp byte [eax], 0x71
mov edx, dword [esp + 0x2c]
je 0x48135b
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x80], ecx
jmp 0x4813bd
mov ecx, dword [esp + 0x20]
test ecx, ecx
js 0x481380
cmp ecx, edx
je 0x481394
cmp dword [esp + 0x80], 0
jge 0x481378
mov dword [esp + 0x80], ecx
mov dword [esp + 0x20], 0xffffffff
test edx, edx
js 0x481394
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jns 0x481398
mov ecx, edx
mov dword [esp + 0x1c], ecx
jmp 0x481398
mov ecx, dword [esp + 0x1c]
mov edx, ecx
xor edx, dword [esp + 0x80]
test edx, 0xdfffffff
je 0x4813b6
mov dword [esp + 0x80], 0xffffffff
jmp 0x4813bd
or dword [esp + 0x80], ecx
cmp dword [esp + 0x68], 0
je 0x481402
mov ecx, dword [esp + 0x58]
push ebp
shr ecx, 0xb
push 0
and ecx, 1
push ecx
push eax
mov byte [ebx], 0
call fcn.0047c380
add esp, 0x10
cmp eax, 0xfffffffd
jne 0x4813ec
mov dword [ebp + 0x5c], 1
jmp 0x4813fe
test eax, eax
js 0x481467
mov edi, dword [esp + 0x30]
mov edx, eax
sar edx, 8
mov byte [edi], dl
mov byte [edi + 1], al
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0x7c
jne 0x4814b2
cmp dword [esp + 0x88], 0
je 0x48143a
mov eax, dword [esp + 0x5c]
add dword [esp + 0x10], 3
mov ecx, dword [eax]
mov edx, dword [esp + 0x70]
inc edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x28]
lea ebx, [ecx + edx + 3]
jmp 0x4812a8
mov ecx, ebx
sub ecx, eax
mov byte [ebx], 0x71
mov dl, bl
sar ecx, 8
mov byte [ebx + 1], cl
sub dl, al
mov byte [ebx + 2], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x50], ebx
add ebx, 3
inc edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x28]
jmp 0x4812a8
cmp eax, 0xfffffffe
jne 0x48148b
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
pop edi
mov eax, 0x24
mov dword [edx], eax
mov eax, dword [esp + 0x14]
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x44
ret
mov edx, dword [esp + 0x64]
sub eax, 0xfffffffc
neg eax
sbb eax, eax
and eax, 0xffffffd3
add eax, 0x46
mov dword [edx], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x44
ret
mov esi, dword [esp + 0x88]
test esi, esi
jne 0x4814e8
mov ecx, ebx
sub ecx, eax
movzx esi, byte [eax + 1]
movzx edx, byte [eax + 2]
shl esi, 8
or esi, edx
mov edx, ecx
sar edx, 8
mov byte [eax + 2], cl
mov byte [eax + 1], dl
sub eax, esi
mov ecx, esi
test esi, esi
jg 0x4814c1
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x24]
mov ecx, ebx
sub ecx, eax
mov dl, bl
mov byte [ebx], 0x72
sar ecx, 8
sub dl, al
mov byte [ebx + 1], cl
mov byte [ebx + 2], dl
add ebx, 3
cmp dword [esp + 0x34], 0
jle 0x481562
mov ecx, dword [ebp + 0x20]
cmp word [ecx + 6], 0
je 0x48155a
mov edx, ebx
sub edx, eax
push edx
push eax
add eax, 3
push eax
call fcn.00488d70
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
add ebx, 3
mov byte [ecx], 0x7b
mov eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x48]
sar eax, 8
mov byte [ecx], al
mov cl, bl
sub cl, byte [esp + 0x30]
add esp, 0xc
mov byte [edx], cl
mov byte [ebx], 0x72
mov byte [ebx + 1], al
mov byte [ebx + 2], cl
add ebx, 3
add dword [esp + 0x10], 6
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov dword [ebp + 0x20], ecx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [ebp + 0x38], edx
mov edx, dword [esp + 0x78]
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
mov dword [ecx], edi
mov ecx, dword [esp + 0x7c]
mov dword [edx], eax
mov edx, dword [esp + 0x80]
mov dword [ecx], edx
test esi, esi
je 0x4815b9
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
mov edx, 0x7fffffeb
sub edx, eax
cmp edx, ecx
jge 0x4815b5
mov eax, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword [eax], 0x14
xor eax, eax
pop ebx
add esp, 0x44
ret
add eax, ecx
mov dword [esi], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret