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

Disassembly:
sub esp, 0x9c
push ebx
xor eax, eax
mov ebx, ecx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x30], ebx
lea edx, [esp + 0x38]
mov dword [esp + 0x5c], eax
mov ecx, edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
call fcn.005404db
test eax, eax
jne 0x5424e4
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
cmp edx, 2
jne 0x541ade
cmp ecx, eax
jne 0x541ade
jmp 0x541ab1
mov eax, dword [esp + 0x28]
mov ecx, edi
or eax, dword [esp + 0x2c]
je 0x541ac5
call fcn.00540672
test eax, eax
jne 0x5424e4
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.005404db
test eax, eax
je 0x541a98
jmp 0x5424e4
lea edx, [esp + 0x38]
call fcn.005404db
test eax, eax
jne 0x5424e4
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
cmp edx, 3
jne 0x541b71
cmp ecx, eax
jne 0x541b71
lea ecx, [esp + 0x7c]
call fcn.00540329
push dword [esp + 0xc4]
mov eax, ecx
mov edx, edi
push dword [esp + 0xc4]
mov ecx, dword [esp + 0xb8]
push eax
push dword [ebx + 0x34]
push dword [ebx + 0x30]
push 8
push dword [esp + 0xcc]
call fcn.005417dc
mov ecx, dword [esp + 0x9c]
mov esi, eax
mov eax, dword [esp + 0xd4]
add esp, 0x1c
mov edx, dword [esp + 0xc0]
mov dword [eax], ecx
lea ecx, [esp + 0x7c]
call fcn.0054034c
test esi, esi
je 0x541b56
mov eax, esi
jmp 0x5424e4
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.005404db
test eax, eax
jne 0x5424e4
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0xbc]
cmp edx, 4
jne 0x541bdc
xor eax, eax
cmp ecx, eax
jne 0x541bdc
push ebp
lea eax, [esp + 0x50]
mov edx, edi
push eax
mov eax, dword [esp + 0xc0]
lea esi, [ebx + 0x38]
push esi
mov ecx, ebx
push dword [eax]
push dword [esp + 0xc4]
push 0x40000000
call fcn.005416c9
add esp, 0x18
test eax, eax
jne 0x5424e4
mov eax, dword [ebx + 0x30]
lea edx, [esp + 0x38]
add dword [esi], eax
mov ecx, edi
mov eax, dword [ebx + 0x34]
adc dword [esi + 4], eax
call fcn.005404db
test eax, eax
jne 0x5424e4
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, edx
or eax, ecx
jne 0x541be9
xor eax, eax
jmp 0x5424e4
cmp edx, 5
jne 0x5424e1
xor eax, eax
cmp ecx, eax
jne 0x5424e1
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.00540614
test eax, eax
jne 0x5424e4
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x40], eax
jmp 0x541f9f
mov esi, dword [esp + 0x38]
mov eax, esi
or eax, dword [esp + 0x3c]
je 0x541fb7
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.005404db
test eax, eax
jne 0x5424e4
mov eax, dword [edi + 4]
xor edx, edx
cmp dword [esp + 0x2c], edx
ja 0x5424e1
mov ecx, dword [esp + 0x28]
jb 0x541c6b
cmp ecx, eax
ja 0x5424e1
cmp dword [esp + 0x3c], edx
ja 0x541f98
cmp esi, 0x100
jae 0x541f98
sub esi, 0xe
je 0x541f1c
sub esi, 1
je 0x541efe
push 2
pop edx
sub esi, edx
je 0x541d71
sub esi, 1
je 0x541d6c
sub esi, edx
je 0x541d46
sub esi, 1
jne 0x541f98
lea esi, [ebx + 0x54]
mov edx, ebp
mov ecx, esi
call fcn.005402f2
mov edx, dword [esp + 0x1c]
mov ecx, edi
push ebp
push esi
call fcn.00540762
pop ecx
pop ecx
test eax, eax
jne 0x5424e4
mov eax, dword [edi + 4]
test eax, eax
je 0x5424e1
dec eax
mov dword [edi + 4], eax
mov eax, dword [edi]
mov cl, byte [eax]
inc eax
test cl, cl
mov dword [edi], eax
mov ecx, edi
je 0x541d35
lea edx, [esp + 0x48]
call fcn.00540614
test eax, eax
jne 0x5424e4
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x48]
cmp ecx, dword [eax]
jae 0x5424e1
mov edx, dword [esp + 0xb4]
mov eax, dword [edx + ecx*8]
mov dword [esp + 0x6c], eax
mov eax, dword [edx + ecx*8 + 4]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x70], eax
mov edx, dword [esp + 0x1c]
push ebp
push esi
call fcn.00540828
pop ecx
jmp 0x541f0e
lea ecx, [ebx + 0x5c]
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0x1c]
push ebp
push dword [eax]
push dword [esp + 0xbc]
push edi
call fcn.00541909
add esp, 0x10
jmp 0x541f0f
lea ecx, [ebx + 0x64]
jmp 0x541d49
test eax, eax
je 0x5424e1
dec eax
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dl, byte [eax]
mov byte [esp + 0x12], dl
lea edx, [eax + 1]
cmp byte [esp + 0x12], 0
mov dword [esp + 0x34], edx
mov dword [edi], edx
jne 0x541d9a
lea eax, [ecx - 1]
jmp 0x541dd2
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.00540614
test eax, eax
jne 0x5424e4
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx]
jae 0x5424e1
mov edx, dword [esp + 0xb4]
mov ecx, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
test al, 1
jne 0x5424e1
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp]
mov ecx, esi
lea eax, [eax*4 + 4]
push eax
push ebp
call dword [0x670300]
call esi
mov dword [ebx + 0x74], eax
pop ecx
pop ecx
test eax, eax
je 0x54211b
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x541e17
xor eax, eax
mov ebx, eax
mov dword [esp + 0x30], ebx
jmp 0x541e4b
mov esi, dword [ebp]
push ecx
push ebp
mov ecx, esi
call dword [0x670300]
call esi
pop ecx
pop ecx
mov ecx, eax
mov dword [ebx + 0x78], ecx
test ecx, ecx
je 0x54211b
mov eax, dword [esp + 0x14]
push eax
push dword [esp + 0x38]
push ecx
call fcn.0060e770
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov esi, dword [ebx + 0x74]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esi], eax
mov edx, eax
add esi, 4
cmp dword [esp + 0x24], eax
jne 0x541e77
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x10
jmp 0x541ee4
push 2
pop eax
cmp ecx, eax
jb 0x5424e1
mov ebp, dword [esp + 0x14]
cmp byte [ecx + ebp - 2], dl
jne 0x5424e1
cmp byte [ecx + ebp - 1], dl
jne 0x5424e1
cmp edx, ecx
je 0x5424e1
add edx, dword [esp + 0x14]
xor ebp, ebp
cmp word [edx], bp
mov ebp, dword [esp + 0xbc]
je 0x541ec1
xor ebx, ebx
add edx, eax
cmp word [edx], bx
jne 0x541eb6
mov ebx, dword [esp + 0x30]
sub edx, dword [esp + 0x14]
add edx, eax
mov eax, edx
shr eax, 1
mov dword [esi], eax
add esi, 4
sub dword [esp + 0x24], 1
push 2
pop eax
jne 0x541e9a
xor esi, esi
cmp edx, ecx
push 0x10
pop eax
cmove eax, esi
test eax, eax
jne 0x5424e4
cmp byte [esp + 0x12], al
jne 0x541f9f
sub dword [edi + 4], ecx
jmp 0x541f9d
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.005406ee
pop ecx
test eax, eax
jne 0x5424e4
jmp 0x541f9f
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
mov edx, esi
mov ecx, edi
call fcn.005406ee
pop ecx
test eax, eax
jne 0x5424e4
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov dword [esp + 0x34], eax
mov edx, ecx
mov dword [esp + 0x20], ecx
test esi, esi
je 0x541f92
mov bl, cl
mov ebp, ecx
mov dword [esp + 0x44], edx
test edx, edx
jne 0x541f5c
mov bl, byte [eax]
push 8
pop edx
dec edx
movzx eax, bl
mov cl, dl
shr eax, cl
mov ecx, dword [esp + 0x34]
and eax, 1
add ebp, eax
cmp dword [esp + 0x44], 0
lea eax, [ecx + 1]
cmovne eax, ecx
mov dword [esp + 0x34], eax
sub esi, 1
jne 0x541f4f
mov ebx, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0xbc]
mov dword [esp + 0x44], ecx
jmp 0x541f9f
sub eax, ecx
mov dword [edi + 4], eax
add dword [edi], ecx
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.005404db
test eax, eax
je 0x541c2b
jmp 0x5424e4
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x4c]
jne 0x5424e1
jmp 0x541fe4
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
je 0x541ff8
mov ecx, edi
call fcn.00540672
test eax, eax
jne 0x5424e4
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.005404db
test eax, eax
je 0x541fcb
jmp 0x5424e4
mov esi, dword [ebp]
xor eax, eax
mov dword [esp + 0x48], eax
mov edi, eax
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
mov ecx, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
mov byte [esp + 0x11], al
mov eax, dword [ebx + 4]
movlpd qword [esp + 0x28], xmm0
mov byte [esp + 0x10], 0x80
lea eax, [eax*4 + 4]
push eax
push ebp
call dword [0x670300]
call esi
mov dword [ebx + 0x6c], eax
pop ecx
pop ecx
test eax, eax
je 0x54211b
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x54205c
mov dword [ebx + 0x70], eax
jmp 0x54207b
mov esi, dword [ebp]
mov ecx, esi
shl eax, 2
push eax
push ebp
call dword [0x670300]
call esi
mov dword [ebx + 0x70], eax
pop ecx
pop ecx
test eax, eax
je 0x54211b
mov eax, dword [ebx + 0x40]
mov esi, dword [ebp]
mov ecx, esi
lea eax, [eax*8 + 8]
push eax
push ebp
call dword [0x670300]
call esi
mov dword [ebx + 0x44], eax
pop ecx
pop ecx
test eax, eax
je 0x54211b
mov eax, dword [ebx + 0x40]
add eax, 7
shr eax, 3
test eax, eax
jne 0x5420b1
xor edx, edx
mov dword [ebx + 0x48], edx
jmp 0x5420cb
mov esi, dword [ebp]
mov ecx, esi
push eax
push ebp
call dword [0x670300]
call esi
mov dword [ebx + 0x48], eax
pop ecx
pop ecx
test eax, eax
je 0x54211b
xor edx, edx
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5420de
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], edx
jmp 0x542124
mov esi, dword [ebp]
add eax, 7
shr eax, 3
mov ecx, esi
push eax
push ebp
call dword [0x670300]
call esi
mov dword [ebx + 0x4c], eax
pop ecx
pop ecx
test eax, eax
je 0x54211b
mov eax, dword [esp + 0x18]
mov esi, dword [ebp]
mov ecx, esi
shl eax, 2
push eax
push ebp
call dword [0x670300]
call esi
mov dword [ebx + 0x50], eax
pop ecx
pop ecx
test eax, eax
jne 0x542122
push 2
jmp 0x5424e3
xor edx, edx
mov eax, dword [esp + 0x68]
test eax, eax
je 0x54215e
dec eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x64]
mov cl, byte [eax]
inc eax
mov byte [esp + 0x12], cl
mov dword [esp + 0x64], eax
test cl, cl
je 0x54214a
mov dword [esp + 0x24], eax
jmp 0x54215e
mov ecx, dword [esp + 0x50]
add ecx, 7
mov dword [esp + 0x34], eax
shr ecx, 3
add ecx, eax
mov dword [esp + 0x24], ecx
mov esi, edx
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp dword [esp + 0x1c], edi
jbe 0x542285
mov al, byte [esp + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], esi
test al, al
jne 0x5421b3
mov eax, dword [ebx + 0x48]
lea ecx, [esi - 1]
mov bl, byte [esp + 0x13]
shr ecx, 3
mov byte [esp + 0x10], 0x80
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x4c]
mov bl, byte [esp + 0x11]
mov byte [ecx + eax], bl
xor eax, eax
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x13], al
mov byte [esp + 0x11], al
mov eax, dword [ebx + 0x44]
xor ecx, ecx
mov dword [eax + esi*8], ebp
mov dword [eax + esi*8 + 4], edx
mov eax, dword [ebx + 0x50]
mov dword [eax + esi*4], ecx
cmp dword [esp + 0x40], ecx
je 0x54229f
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [esp + 0x40]
shr eax, 3
test byte [eax + ecx], dl
je 0x54229f
cmp dword [esp + 0x44], 0
je 0x54222b
mov ecx, dword [esp + 0x48]
mov edx, 0x80
mov ebx, dword [esp + 0x44]
and ecx, 7
sar edx, cl
mov ecx, dword [esp + 0x48]
mov eax, ecx
shr eax, 3
test byte [eax + ebx], dl
mov ebx, dword [esp + 0x30]
jne 0x542224
mov al, byte [esp + 0x13]
or al, byte [esp + 0x10]
mov byte [esp + 0x13], al
inc ecx
mov dword [esp + 0x48], ecx
jmp 0x542237
mov al, byte [esp + 0x13]
or al, byte [esp + 0x10]
mov byte [esp + 0x13], al
cmp dword [esp + 0x14], 0
jne 0x54231b
mov eax, dword [ebx + 0x70]
or dword [eax + esi*4], 0xffffffff
mov edx, dword [esp + 0x18]
mov al, byte [esp + 0x10]
inc esi
shr al, 1
mov byte [esp + 0x10], al
cmp esi, dword [esp + 0x1c]
jb 0x54217a
mov eax, dword [ebx + 0x48]
mov ecx, dword [esp + 0x38]
mov bl, byte [esp + 0x13]
shr ecx, 3
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x4c]
mov bl, byte [esp + 0x11]
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x14], 0
mov eax, dword [ebx + 0x44]
mov dword [eax + esi*8], ebp
mov dword [eax + esi*8 + 4], edx
jne 0x5424e1
jmp 0x5424c0
cmp dword [esp + 0x14], 0
jne 0x54231b
cmp edi, dword [ebx + 4]
jae 0x5424e1
mov eax, dword [ebx + 0x6c]
mov dword [eax + edi*4], esi
xor eax, eax
inc eax
cmp dword [esp + 0x54], 0
mov dword [esp + 0x20], eax
je 0x5422dc
lea edx, [esp + 0x20]
lea ecx, [esp + 0x54]
call fcn.00540614
test eax, eax
jne 0x5424e4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x54231b
mov eax, dword [ebx + 0x20]
mov edx, dword [esp + 0x18]
movzx ecx, byte [eax + edi]
mov eax, dword [ebx + 0x1c]
add ecx, dword [eax + edi*4]
mov eax, dword [ebx + 0x24]
add ebp, dword [eax + ecx*8]
adc edx, dword [eax + ecx*8 + 4]
mov dword [esp + 0x18], edx
cmp edx, dword [eax + ecx*8 + 4]
jb 0x5424e1
ja 0x542318
cmp ebp, dword [eax + ecx*8]
jb 0x5424e1
inc edi
jmp 0x5422a6
cmp dword [esp + 0x40], 0
mov eax, dword [ebx + 0x70]
mov dword [eax + esi*4], edi
je 0x542346
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [esp + 0x40]
shr eax, 3
test byte [eax + ecx], dl
jne 0x542249
sub dword [esp + 0x14], 1
jne 0x542430
mov eax, dword [ebx + 0x20]
movzx ecx, byte [eax + edi]
mov eax, dword [ebx + 0x1c]
add ecx, dword [eax + edi*4]
mov eax, dword [ebx + 0x24]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + edi*4]
mov ebx, dword [ecx + eax*8]
sub ebp, dword [ecx + eax*8]
mov dword [esp + 0x78], ebx
mov ebx, dword [ecx + eax*8 + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
sbb eax, ebx
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x30]
cmp ecx, eax
jb 0x5424e1
ja 0x5423a7
cmp edx, ebp
jb 0x5424e1
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x6c]
add ebp, edx
adc eax, ecx
mov dword [esp + 0x18], eax
cmp eax, ecx
jb 0x5424e1
ja 0x5423c9
cmp ebp, edx
jb 0x5424e1
cmp dword [esp + 0x20], 1
jne 0x5423f7
cmp dword [ebx + 0xc], 0
je 0x5423f7
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [ebx + 0xc]
shr eax, 3
test byte [eax + ecx], dl
je 0x5423f7
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x542418
cmp byte [esp + 0x12], 0
jne 0x54240b
mov eax, dword [esp + 0x34]
test eax, eax
je 0x54242a
test byte [eax], 0x80
je 0x54242a
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
add edx, 4
mov dword [esp + 0x24], edx
mov ecx, dword [ebx + 0x50]
mov dword [ecx + esi*4], eax
mov al, byte [esp + 0x11]
or al, byte [esp + 0x10]
mov byte [esp + 0x11], al
inc edi
jmp 0x542249
lea edx, [esp + 0x28]
lea ecx, [esp + 0x5c]
call fcn.005404db
test eax, eax
jne 0x5424e4
add ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
adc edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x2c]
jb 0x5424e1
ja 0x542467
cmp ebp, dword [esp + 0x28]
jb 0x5424e1
cmp byte [esp + 0x12], 0
jne 0x542483
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x54224d
test byte [ecx], 0x80
je 0x54224d
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x50]
add dword [esp + 0x24], 4
mov eax, dword [eax]
mov dword [ecx + esi*4], eax
mov al, byte [esp + 0x10]
or byte [esp + 0x11], al
jmp 0x542251
cmp dword [esp + 0x54], 0
je 0x5424e1
lea edx, [esp + 0x20]
lea ecx, [esp + 0x54]
call fcn.00540614
test eax, eax
jne 0x5424e4
cmp dword [esp + 0x20], eax
jne 0x5424e1
inc edi
mov eax, dword [ebx + 0x6c]
mov dword [eax + edi*4], esi
cmp edi, dword [ebx + 4]
jb 0x5424a1
cmp dword [esp + 0x54], 0
je 0x541be2
cmp dword [esp + 0x58], 0
je 0x541be2
push 0x10
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret