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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
mov edx, dword [esp + 0x54]
push ebx
mov ebx, dword [edx]
xor eax, eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x78]
push ebp
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x44]
lea edx, [ecx + 6]
mov dword [esp + 0x34], eax
mov eax, 0xfffffffe
push esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x84], edx
cmp byte [ebx], 0x5f
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x84], eax
mov dword [esp + 0x20], eax
jne 0x5464b1
movzx eax, byte [ebx + 3]
movzx edx, byte [ebx + 4]
shl eax, 8
or eax, edx
mov dword [esp + 0x34], eax
mov word [esp + 0x4c], ax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x48], eax
xor edx, edx
lea eax, [esp + 0x48]
mov word [esp + 0x4e], dx
mov dword [ebp + 0x20], eax
mov esi, dword [esp + 0x8c]
lea eax, [ebx + 1]
mov byte [eax], 0
mov dword [esp + 0x40], eax
lea eax, [ebx + 2]
neg esi
mov byte [eax], 0
mov edi, dword [ebp + 0x34]
lea ebx, [ebx + ecx + 3]
sbb esi, esi
lea ecx, [esp + 0x88]
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], edi
and esi, ecx
cmp dword [esp + 0x74], 0
mov dword [esp + 0x10], ebx
je 0x5464fa
mov edx, dword [esp + 0x38]
mov dword [ebp + 0x34], edx
mov eax, dword [esp + 0x5c]
mov ecx, eax
and ecx, 7
cmp ecx, dword [esp + 0x60]
je 0x54651e
mov byte [ebx], 0x19
inc ebx
and al, 7
mov byte [ebx], al
inc ebx
add dword [esp + 0x88], 2
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x70], 0
je 0x546543
mov byte [ebx], 0x5c
inc ebx
mov byte [ebx], 0
mov byte [ebx + 1], 0
mov dword [esp + 0x30], ebx
add ebx, 2
add dword [esp + 0x88], 3
mov dword [esp + 0x10], ebx
push esi
push ebp
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x74]
push eax
lea edx, [esp + 0x48]
call fcn.005434e0
add esp, 0x1c
test eax, eax
je 0x5466e4
mov eax, dword [ebp + 0x44]
cmp dword [esp + 0x3c], eax
je 0x546589
and eax, 7
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x34]
cmp eax, edi
jle 0x546594
mov dword [esp + 0x28], eax
cmp dword [esp + 0x8c], 0
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
jne 0x546669
cmp byte [eax], 0x54
je 0x5465c4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x84], edx
jmp 0x54662a
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
test ecx, ecx
jl 0x5465ed
cmp ecx, edx
je 0x546601
cmp dword [esp + 0x84], 0
jge 0x5465e5
mov dword [esp + 0x84], ecx
mov dword [esp + 0x20], 0xffffffff
test edx, edx
jl 0x546601
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jge 0x546605
mov ecx, edx
mov dword [esp + 0x1c], ecx
jmp 0x546605
mov ecx, dword [esp + 0x1c]
mov edx, ecx
xor edx, dword [esp + 0x84]
test edx, 0xfffffdff
je 0x546623
mov dword [esp + 0x84], 0xffffffff
jmp 0x54662a
or dword [esp + 0x84], ecx
cmp dword [esp + 0x70], 0
je 0x546669
mov ecx, dword [esp + 0x5c]
push ebp
push 0
push ecx
push eax
mov byte [ebx], 0
call fcn.00542560
add esp, 0x10
cmp eax, 0xfffffffd
jne 0x546653
mov dword [ebp + 0x54], 1
jmp 0x546665
test eax, eax
jl 0x5466d1
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 0x5466f8
cmp dword [esp + 0x8c], 0
je 0x5466a4
mov eax, dword [esp + 0x64]
add dword [esp + 0x88], 3
mov ecx, dword [eax]
mov edx, dword [esp + 0x78]
inc edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x28]
lea ebx, [ecx + edx + 3]
jmp 0x5464e8
mov ecx, ebx
sub ecx, eax
mov byte [ebx], 0x54
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 + 0x54], ebx
add ebx, 3
inc edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x28]
jmp 0x5464e8
mov edx, dword [esp + 0x6c]
sub eax, 0xfffffffe
neg eax
sbb eax, eax
and eax, 0xfffffff5
add eax, 0x24
mov dword [edx], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x48
ret
mov esi, dword [esp + 0x8c]
test esi, esi
jne 0x546737
mov ecx, ebx
sub ecx, eax
jmp 0x546710
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 0x546710
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x24]
mov ecx, ebx
sub ecx, eax
mov dl, bl
mov byte [ebx], 0x55
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 0x5467b4
mov ecx, dword [ebp + 0x20]
cmp word [ecx + 6], 0
je 0x5467ac
mov edx, ebx
sub edx, eax
push edx
push eax
add eax, 3
push eax
call fcn.0054cae0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
add ebx, 3
mov byte [ecx], 0x5d
mov eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x4c]
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], 0x55
mov byte [ebx + 1], al
mov byte [ebx + 2], cl
add ebx, 3
add dword [esp + 0x88], 6
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov dword [ebp + 0x20], ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
and eax, 7
cmp eax, ecx
je 0x5467db
cmp byte [edi], 0x29
jne 0x5467db
mov byte [ebx], 0x19
inc ebx
mov byte [ebx], cl
mov ecx, dword [esp + 0x88]
inc ebx
add ecx, 2
jmp 0x5467e2
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x34], edx
mov edx, dword [esp + 0x68]
mov dword [eax], ebx
mov eax, dword [esp + 0x7c]
mov dword [edx], edi
mov edx, dword [esp + 0x20]
mov dword [eax], edx
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [eax], edx
test esi, esi
je 0x546838
mov eax, dword [esi]
mov edx, 0x7fffffeb
sub edx, eax
cmp edx, ecx
jge 0x546834
mov eax, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword [eax], 0x14
xor eax, eax
pop ebx
add esp, 0x48
ret
add eax, ecx
mov dword [esi], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret