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

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
push edi
or edi, 0xffffffff
mov ebx, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edi
mov al, byte [esi]
mov ecx, edi
xor edx, edx
mov dword [esp + 0x20], ebx
test al, al
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov ebp, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], edx
je 0x54e183
cmp dword [esp + 0x28], 6
jge 0x54e175
test al, al
mov byte [esp + 0x7c], 0
je 0x54deea
and eax, 0xff
push eax
call fcn.005de829
add esp, 4
test eax, eax
jne 0x54deea
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x54ded0
xor eax, eax
mov al, byte [esi]
push eax
call fcn.005de77e
add esp, 4
test eax, eax
je 0x54df9e
mov cl, byte [0x6ec0c8]
xor eax, eax
mov byte [esp + 0x58], cl
mov ecx, 7
lea edi, [esp + 0x59]
lea edx, [esp + 0x58]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x6da5c0
push esi
stosb byte es:[edi], al
call fcn.005de570
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x34]
not ecx
dec ecx
cmp eax, 0xffffffff
mov edi, ecx
jne 0x54df5b
lea eax, [esp + 0x58]
push edi
push eax
mov ecx, ebx
call fcn.0054dc90
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
jne 0x54df97
cmp dword [esp + 0x18], 0xffffffff
jne 0x54df77
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebx
call fcn.0054dce0
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x54df97
cmp ebp, 0xffffffff
jne 0x54e15c
lea edx, [esp + 0x58]
mov ecx, ebx
push edx
call fcn.0054dd20
mov ebp, eax
cmp ebp, 0xffffffff
je 0x54e15c
add esi, edi
jmp 0x54e145
xor eax, eax
mov al, byte [esi]
push eax
call fcn.005de7ac
add esp, 4
test eax, eax
je 0x54e148
cmp dword [esp + 0x1c], edi
jne 0x54dfe3
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
push 0x6da5b0
push esi
call fcn.005de570
add esp, 0x14
cmp eax, 3
jne 0x54dfe3
add esi, 8
jmp 0x54e148
lea ecx, [esp + 0x38]
push 0xa
push ecx
push esi
call fcn.005e1a8f
add esp, 0xc
cmp ebp, edi
mov ecx, eax
jne 0x54e05c
mov edx, dword [esp + 0x38]
sub edx, esi
cmp edx, 4
jne 0x54e05c
cmp ecx, 0x578
jg 0x54e05c
cmp dword [esp + 0x3c], esi
jae 0x54e05c
mov bl, byte [esi - 1]
cmp bl, 0x2b
je 0x54e01f
cmp bl, 0x2d
jne 0x54e058
mov eax, 0x51eb851f
mov ebp, 0x64
imul ecx
sar edx, 5
mov eax, edx
mov byte [esp + 0x7c], 1
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*2]
lea edi, [eax + eax*4]
mov eax, ecx
cdq
idiv ebp
lea eax, [edx + edi*4]
lea eax, [eax + eax*2]
lea ebp, [eax + eax*4]
shl ebp, 2
cmp bl, 0x2b
jne 0x54e058
neg ebp
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x38]
mov edx, edi
sub edx, esi
cmp edx, 8
jne 0x54e0c6
mov eax, dword [esp + 0x10]
or edx, 0xffffffff
cmp eax, edx
jne 0x54e0c9
cmp dword [esp + 0x18], edx
jne 0x54e0c9
cmp dword [esp + 0x14], edx
jne 0x54e0c9
mov eax, 0x68db8bad
mov esi, 0x2710
imul ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 0x10], edx
cdq
idiv esi
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea edx, [edx + eax - 1]
mov eax, ecx
mov dword [esp + 0x18], edx
mov ecx, 0x64
cdq
idiv ecx
mov dword [esp + 0x14], edx
jmp 0x54e143
or edx, 0xffffffff
mov al, byte [esp + 0x7c]
test al, al
jne 0x54e143
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x54e107
cmp dword [esp + 0x14], edx
jne 0x54e169
test ecx, ecx
jle 0x54e0f5
cmp ecx, 0x20
jge 0x54e0f5
mov dword [esp + 0x14], ecx
mov byte [esp + 0x7c], 1
mov al, byte [esp + 0x7c]
mov dword [esp + 0x24], 1
test al, al
jne 0x54e143
jmp 0x54e10c
cmp eax, 1
jne 0x54e169
cmp dword [esp + 0x10], edx
jne 0x54e169
cmp ecx, 0x76c
mov dword [esp + 0x10], ecx
jge 0x54e135
cmp ecx, 0x46
jle 0x54e12b
add ecx, 0x76c
jmp 0x54e131
add ecx, 0x7d0
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x14], edx
jne 0x54e143
mov dword [esp + 0x24], 0
mov esi, edi
or edi, 0xffffffff
mov edx, dword [esp + 0x28]
mov al, byte [esi]
inc edx
test al, al
mov dword [esp + 0x28], edx
je 0x54e175
jmp 0x54debc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x68
ret 4
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x68
ret 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, edi
jne 0x54e191
xor edx, edx
xor eax, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x54e210
mov edx, dword [esp + 0x18]
cmp edx, edi
je 0x54e210
cmp ecx, edi
je 0x54e210
cmp ecx, 0x7f5
jle 0x54e1bc
pop edi
pop esi
pop ebp
mov eax, bind
pop ebx
add esp, 0x68
ret 4
add ecx, 0xfffff894
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edx
call fcn.0054dd70
cmp eax, edi
je 0x54e212
mov ecx, ebp
inc ecx
neg ecx
sbb ecx, ecx
and ecx, ebp
jle 0x54e204
lea edx, [ecx + eax]
cmp edx, eax
jl 0x54e210
pop edi
pop esi
pop ebp
add eax, ecx
pop ebx
add esp, 0x68
ret 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4