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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x543a7f
sub esp, 0x48
mov edx, dword [esp + 0x68]
test edx, edx
je 0x543a2b
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x543a29
test edx, edx
je 0x543a22
mov edx, dword [edx]
mov dword [esp + 0x3c], ebx
cmp edx, 0xffffffff
jne 0x543986
nop
lea edx, [ebx - 1]
cmp edx, 0x13
jae 0x543a3b
mov ecx, dword [0x6fcde4]
mov edx, dword [0x6fcde0]
cmp ecx, ebx
jbe 0x543a34
movzx edx, byte [ebx + edx]
mov dword [esp + 0x40], edx
lea eax, [0x5a5da0]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.004451f0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x40]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.0048b550
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x54390a
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
add esp, 0x48
ret
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.005434d0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebp
add esp, 0x48
ret
test edx, edx
jne 0x54388c
mov edx, dword [esp + 0x54]
mov ebp, dword [edx]
mov esi, dword [ebp + 8]
mov ebp, dword [ebp + 4]
lea edi, [esi - 1]
test edi, edi
jl 0x543a1e
mov ebp, dword [ebp + esi*4 - 4]
nop
cmp ebp, 0x10000
jb 0x543a1a
shr ebp, 0x10
mov eax, 0x10
cmp ebp, 0x100
jb 0x5439c4
shr ebp, 8
add eax, 8
cmp ebp, 0x100
jae 0x543a72
shl edi, 5
lea esi, [0x6e2360]
movzx ebp, byte [ebp + esi]
add ebp, eax
add ebp, edi
lea esi, [ebp + 7]
sar esi, 0x1f
shr esi, 0x1d
lea ebp, [esi + ebp + 7]
lea esi, [ebx - 1]
cmp esi, 0x13
jae 0x543a5a
mov ecx, dword [0x6fcde4]
mov esi, dword [0x6fcde0]
cmp ebx, ecx
jae 0x543a53
sar ebp, 3
movzx eax, byte [ebx + esi]
sub ebp, eax
lea eax, [ebp - 2]
mov edx, eax
jmp 0x54388c
xor eax, eax
jmp 0x5439b6
xor ebp, ebp
jmp 0x5439e2
xor edx, edx
jmp 0x54385a
test edx, edx
mov ebx, dword [esp + 0x58]
jmp 0x543852
mov eax, ebx
call fcn.0045e2b0
lea eax, [0x5a5ba0]
mov dword [esp], eax
lea eax, [0x60e650]
mov dword [esp + 4], eax
call fcn.00431c00
mov eax, ebx
call fcn.0045e2b0
lea eax, [0x5a5ba0]
mov dword [esp], eax
lea eax, [0x60e650]
mov dword [esp + 4], eax
call fcn.00431c00
mov eax, ebp
mov ecx, 0x100
call fcn.0045e2b0
nop
call fcn.0045ccc0
jmp fcn.00543820