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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x20]
cmp eax, dword [ecx + 8]
jbe 0x542813
sub esp, 0xa0
mov ecx, dword [esp + 0xac]
test ecx, ecx
jbe 0x54280b
mov edx, dword [esp + 0xa8]
movzx ebx, byte [edx]
cmp ecx, 5
jb 0x542801
mov byte [esp + 0x53], bl
mov eax, dword [esp + 0xb0]
lea ebp, [eax - 5]
mov dword [esp + 0x70], ebp
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 5
add ebp, edx
mov dword [esp + 0x94], ebp
lea edi, [ecx - 5]
mov dword [esp + 0x60], edi
mov ecx, dword [esp + 0xa4]
cmp word [ecx + 0x10], 0x304
jne 0x541cea
cmp bl, 0x14
je 0x54274d
mov dword [esp], ecx
call fcn.00541a10
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x18]
test edx, edx
jne 0x542023
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x94]
xor ebp, ebp
mov esi, 0xffffffff
movzx edi, byte [esp + 0x53]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
xchg edi, eax
mov byte [esp + 0x51], al
xchg edi, eax
xchg esi, eax
mov byte [esp + 0x52], al
xchg esi, eax
mov esi, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
test esi, esi
jne 0x541dd6
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x8c]
mov ebp, 7
jmp 0x541d72
dec ebp
movzx edi, byte [esp + 0x51]
test ebp, ebp
jl 0x542792
cmp ebp, 8
jae 0x542786
movzx esi, byte [ecx + ebp + 0x24]
lea edi, [esi + 1]
xchg edi, eax
mov byte [ecx + ebp + 0x24], al
xchg edi, eax
xchg esi, eax
cmp al, 0xff
xchg esi, eax
je 0x541d6c
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], eax
movzx eax, byte [esp + 0x51]
mov byte [esp + 0xc0], al
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
add esp, 0xa0
ret
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ebp
mov eax, dword [esi + 0x18]
mov dword [esp], ebx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x60]
cmp ecx, eax
jl 0x541fd1
mov ebx, ecx
sub ecx, eax
mov ebp, dword [esp + 0x68]
sub ecx, ebp
mov ebp, ecx
shr ecx, 0x1f
lea esi, [ecx - 1]
and esi, ebp
mov ebp, esi
sar esi, 8
mov edi, dword [esp + 0xa8]
xchg esi, eax
mov byte [edi + 3], al
xchg esi, eax
xchg ebp, eax
mov byte [edi + 4], al
xchg ebp, eax
lea ecx, [ebp + eax]
mov edx, dword [esp + 0x64]
cmp ecx, edx
ja 0x5427c1
cmp ebp, ecx
ja 0x5427ba
sub edx, ebp
neg edx
sar edx, 0x1f
and edx, ebp
mov esi, dword [esp + 0x90]
add edx, esi
cmp ebx, ecx
jb 0x5427b1
mov dword [esp + 0x54], eax
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], edx
mov eax, dword [esp + 0xa4]
mov edx, dword [eax + 0x1c]
mov ebx, dword [eax + 0x20]
mov dword [esp], edx
mov dword [esp + 4], ebx
lea edx, [eax + 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0xd
lea edx, [eax + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 5
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
mov edx, dword [esp + 0x64]
mov dword [esp + 0x34], edx
sub edx, ecx
mov edi, edx
neg edx
sar edx, 0x1f
and edx, ecx
add edx, esi
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x60]
sub edx, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edi
call fcn.005403d0
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
cmp edx, ecx
je 0x541f8f
xor eax, eax
movzx edx, byte [esp + 0x52]
movzx edx, dl
and edx, eax
cmp edx, 1
jne 0x541f3d
mov ecx, dword [esp + 0xa4]
movzx edi, byte [esp + 0x51]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x90]
jmp 0x541d65
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov byte [esp + 0xc0], 0
lea eax, [0x65ecd0]
mov dword [esp + 0xc4], eax
mov eax, 0x14
lea ecx, [0x760ea0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xc8], eax
add esp, 0xa0
ret
mov edx, dword [esp + 0x88]
xor ebx, ebx
xor ebp, ebp
jmp 0x541fb5
lea esi, [ebx + 1]
mov dword [esp + 0x74], esi
movzx edi, byte [ebx + eax]
movzx esi, byte [ebx + edx]
xor edi, esi
or ebp, edi
mov esi, dword [esp + 0x74]
mov ebx, esi
cmp ecx, ebx
jle 0x541fc0
ja 0x541f9c
jmp 0x5427aa
nop
xchg ebp, eax
movzx edx, al
xchg ebp, eax
lea eax, [edx - 1]
shr eax, 0x1f
jmp 0x541f0b
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov byte [esp + 0xc0], 0
lea eax, [0x65ecd0]
mov dword [esp + 0xc4], eax
mov eax, 0x14
lea ecx, [0x760ea0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xc8], eax
add esp, 0xa0
ret
je 0x5427e9
mov dword [esp + 0x6c], eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x9c], ebx
lea eax, [0x5e1980]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.004095a0
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test al, al
je 0x542253
mov eax, dword [ecx + 0x10]
mov dword [esp], edx
mov ecx, dword [esp + 0x94]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
call eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x94]
xor ebx, ebx
mov ebp, 0xffffffff
xor esi, esi
xor edi, edi
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x90], edx
xchg ebp, eax
mov byte [esp + 0x52], al
xchg ebp, eax
mov dword [esp + 0x68], ebx
mov edx, dword [esp + 0xa4]
cmp word [edx + 0x10], 0x304
jne 0x542247
movzx edx, byte [esp + 0x53]
cmp dl, 0x17
jne 0x5421f5
cmp esi, 0x4001
jg 0x5421a3
lea ebx, [esi - 1]
jmp 0x542102
dec ebx
movzx ebp, byte [esp + 0x52]
test ebx, ebx
jl 0x54219d
cmp ebx, esi
jae 0x5427c6
movzx ebp, byte [edi + ebx]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x542172
test ebx, ebx
jne 0x5420fc
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov byte [esp + 0xc0], 0
lea eax, [0x65ecd0]
mov dword [esp + 0xc4], eax
mov eax, 0xa
lea ecx, [0x760ea0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xc8], eax
add esp, 0xa0
ret
mov edx, ecx
movzx esi, byte [esp + 0x52]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x8c], edi
mov ecx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x90]
mov edi, ebp
mov ebp, dword [esp + 0x68]
jmp 0x541d35
mov ebp, edx
mov ebx, esi
jmp 0x542172
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov byte [esp + 0xc0], 0
lea eax, [0x65ecd0]
mov dword [esp + 0xc4], eax
mov eax, 0x16
lea ecx, [0x760ea0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xc8], eax
add esp, 0xa0
ret
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov byte [esp + 0xc0], 0
lea eax, [0x65ecd0]
mov dword [esp + 0xc4], eax
mov eax, 0xa
lea ecx, [0x760ea0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xc8], eax
add esp, 0xa0
ret
movzx ebp, byte [esp + 0x53]
mov ebx, esi
jmp 0x542172
lea eax, [0x5f2940]
mov dword [esp], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x9c]
mov dword [esp + 8], ecx
call fcn.004095a0
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test al, al
jne 0x5424b8
lea eax, [0x5e97e0]
mov dword [esp], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 8], eax
call fcn.004095a0
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test al, al
je 0x5427e9
mov dword [esp + 0x9c], edx
mov dword [esp + 0x80], ecx
mov eax, dword [ecx + 0x10]
mov dword [esp], edx
call eax
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 4]
mov dword [esp + 0x78], edx
mov ebx, dword [eax + 0x20]
mov ecx, dword [ecx + 0x18]
mov dword [esp], ebx
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x5427db
lea ebx, [eax + 1]
mov edx, eax
mov eax, ebx
mov ebx, edx
cmp ecx, 0xffffffff
je 0x54231b
cdq
idiv ecx
jmp 0x54231d
xor edx, edx
mov eax, ecx
sub eax, edx
cmp ecx, 0xffffffff
je 0x54232b
cdq
idiv ecx
jmp 0x54232d
xor edx, edx
add ebx, edx
mov ebp, dword [esp + 0x6c]
lea ebx, [ebx + ebp + 1]
mov eax, dword [esp + 0x60]
cdq
idiv ecx
test edx, edx
jne 0x542466
mov eax, dword [esp + 0x60]
cmp eax, ebx
jl 0x542466
test ebp, ebp
jle 0x542454
mov edx, dword [esp + 0x70]
cmp edx, ebp
jb 0x5427d4
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x18]
mov ebx, dword [esp + 0x9c]
mov dword [esp], ebx
mov esi, dword [esp + 0x94]
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
call ecx
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x6c]
cmp ecx, eax
jb 0x5427cf
mov ecx, dword [esp + 0xb0]
sub ecx, eax
lea ebp, [ecx - 5]
mov ecx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
mov ebx, dword [esp + 0xac]
sub ebx, eax
mov eax, dword [esp + 0x94]
add ebp, eax
lea edi, [ebx - 5]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x90], ebp
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x9c]
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
call eax
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 8], edx
call fcn.00541b50
mov ebx, dword [esp + 0xc]
movzx ebp, byte [esp + 0x10]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x90]
xor esi, esi
xor edi, edi
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
jmp 0x5420b9
mov ecx, dword [esp + 0x70]
mov edi, eax
mov ebp, dword [esp + 0x94]
jmp 0x5423cd
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov byte [esp + 0xc0], 0
lea eax, [0x65ecd0]
mov dword [esp + 0xc4], eax
mov eax, 0x14
lea ecx, [0x760ea0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xc8], eax
add esp, 0xa0
ret
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x6c]
cmp eax, ebx
jl 0x5426fb
mov eax, dword [esp + 0x70]
cmp eax, ebx
jb 0x5427e0
test ebx, ebx
jne 0x5426e6
mov esi, dword [esp + 0xa4]
lea ebp, [esi + 0x24]
mov eax, 8
mov edi, 8
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], edi
mov eax, dword [esp + 0xb0]
sub eax, ebx
add eax, 0xfffffffb
mov dword [esp + 0x64], eax
neg eax
sar eax, 0x1f
and eax, ebx
mov edi, dword [esp + 0x94]
add eax, edi
mov dword [esp + 0x90], eax
mov edi, dword [esp + 0xac]
sub edi, ebx
cmp word [esi + 0x10], 0x304
jne 0x54263c
mov ebx, dword [esp + 0xb0]
mov ebx, 5
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x98], ebx
mov ebx, dword [esp + 0xb0]
mov ecx, dword [ecx + 0x14]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov edx, dword [esp + 0x64]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
lea ebp, [edi - 5]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
mov esi, dword [esp + 0x98]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
call ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
test eax, eax
jne 0x5425ea
mov eax, dword [esp + 0x64]
mov ebp, 0xffffffff
mov esi, edx
mov edi, ecx
mov dword [esp + 0x5c], ebx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x90]
xor ebx, ebx
jmp 0x5420b9
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov byte [esp + 0xc0], 0
lea eax, [0x65ecd0]
mov dword [esp + 0xc4], eax
mov eax, 0x14
lea ecx, [0x760ea0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xc8], eax
add esp, 0xa0
ret
mov dword [esp + 0x9c], edx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x94], ebp
mov dword [esp + 0x84], edi
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x28]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov eax, dword [esp + 0xa8]
movzx ebx, word [eax]
movzx ebp, byte [eax + 2]
mov word [esi + 0x34], bx
xchg ebp, eax
mov byte [esi + 0x36], al
xchg ebp, eax
mov ebx, dword [ecx + 0x18]
mov dword [esp], edx
call ebx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x84]
mov edx, ecx
sub ecx, eax
mov esi, dword [esp + 0xa4]
add esi, 0x2c
mov ebx, esi
lea esi, [ecx - 5]
mov ecx, esi
sar esi, 8
xchg esi, eax
mov byte [ebx + 0xb], al
xchg esi, eax
mov byte [ebx + 0xc], cl
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x94]
mov edi, edx
mov esi, 0xd
mov dword [esp + 0x7c], esi
mov dword [esp + 0x98], ebx
mov edx, dword [esp + 0x9c]
mov ebx, 0xd
jmp 0x542559
mov esi, dword [esp + 0xa4]
mov edi, ebx
mov ebp, dword [esp + 0x94]
jmp 0x5424f0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov byte [esp + 0xc0], 0
lea eax, [0x65ecd0]
mov dword [esp + 0xc4], eax
mov eax, 0x14
lea ecx, [0x760ea0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xc8], eax
add esp, 0xa0
ret
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], esi
mov byte [esp + 0xc0], bl
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
add esp, 0xa0
ret
mov eax, ebp
mov ecx, 8
call fcn.0045de90
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65bd00]
mov dword [esp + 4], eax
call fcn.00431a30
mov eax, ebx
call fcn.0045de90
mov eax, ecx
mov ecx, ebx
call fcn.0045def0
mov eax, ebp
call fcn.0045def0
call fcn.0045ded0
mov eax, ebx
mov ecx, esi
call fcn.0045de90
call fcn.0045def0
mov ecx, ebp
call fcn.0045ded0
call fcn.004303f0
mov ecx, ebx
mov edx, eax
call fcn.0045ded0
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65bd08]
mov dword [esp + 4], eax
call fcn.00431a30
mov eax, 5
call fcn.0045def0
xor eax, eax
call fcn.0045de90
nop
call fcn.0045c8b0
jmp fcn.00541c60