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

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x20]
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov ebp, dword [edi + 4]
mov esi, dword [edi]
mov ebx, dword [edi + 8]
cmp byte [ebp + 0x10], 0x4c
setne al
dec dword [esi + 0x38]
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
cmp edx, 2
jne 0x541dd3
cmp byte [ebp + 0x11], 0x5a
jne 0x541dd3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x541e47
cmp byte [ebp + 0x10], 0x59
jne 0x541e34
mov edi, dword [ebx + 0x74]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x2c]
push ecx
cmp edx, 2
jne 0x541e20
cmp byte [ebp + 0x11], 0x56
jne 0x541e0c
push dword [edi + 0x20]
push eax
push dword [edi + 0x28]
push 0x37
push edi
call fcn.005421c0
add esp, 0x18
jmp 0x541e5d
push dword [edi + 0x28]
push eax
push dword [edi + 0x20]
push 0x39
push edi
call fcn.005421c0
add esp, 0x18
jmp 0x541e5d
push dword [edi + 0x28]
push eax
push dword [edi + 0x30]
push 0x36
push edi
call fcn.005421c0
add esp, 0x18
jmp 0x541e43
push 1
push ecx
push eax
push 0x31
push ebx
call fcn.0051a430
add esp, 0x14
mov edx, dword [esp + 0x30]
cmp edx, 1
jne 0x541e61
cmp dword [ebp + 0x58], 0
jne 0x541e61
push 0
push edi
call fcn.00540f60
add esp, 8
mov edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x24], eax
mov al, byte [ebp + 0x11]
cmp al, byte [ebp + 0x12]
jne 0x541f73
cmp dword [esp + 0x34], 0
je 0x541f73
cmp byte [ebp + 0x10], 0x59
jne 0x541f73
mov al, byte [esi + 0x13]
test al, al
jne 0x541e98
inc dword [esi + 0x2c]
mov ecx, dword [esi + 0x2c]
jmp 0x541ea7
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov ecx, dword [esi + eax*4 + 0x98]
mov al, byte [esi + 0x13]
mov dword [esp + 0x2c], ecx
test al, al
jne 0x541eba
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
jmp 0x541ec9
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov eax, dword [esi + eax*4 + 0x98]
mov dword [esp + 0x10], eax
cmp edx, 2
jne 0x541f0c
push ecx
push dword [edi + 0x20]
push 0x86
push ebx
call fcn.0051a3d0
push dword [esp + 0x20]
push dword [edi + 0x30]
push 0x86
push ebx
call fcn.0051a3d0
push dword [esp + 0x4c]
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0x39
push ebx
call fcn.0051a430
add esp, 0x34
jmp 0x541f37
cmp dword [edi + 0x1c], 0
je 0x541f3b
push ecx
push dword [edi + 0x30]
push 0x86
push ebx
call fcn.0051a3d0
push dword [esp + 0x3c]
push dword [esp + 0x28]
push dword [edi + 0x1c]
push 0x39
push ebx
call fcn.0051a430
add esp, 0x24
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x541f57
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x541f57
movzx eax, al
mov dword [esi + eax*4 + 0x98], ecx
inc byte [esi + 0x13]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x541f73
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x541f73
movzx eax, al
mov dword [esi + eax*4 + 0x98], ecx
inc byte [esi + 0x13]
mov eax, edx
dec eax
je 0x541fea
dec eax
je 0x541fb3
cmp dword [ebp + 0x58], 0
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ecx
je 0x541fa1
push 1
push dword [ebp + 0x5c]
push 0x55
push ebx
call fcn.0051a3d0
add esp, 0x10
jmp 0x542001
push dword [edi + 0x14]
push 0
push eax
push ebp
push edi
call fcn.005412a0
add esp, 0x14
jmp 0x542001
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x58]
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x541fd8
push 1
push ecx
push 0x55
push ebx
call fcn.0051a3d0
add esp, 0x10
jmp 0x542001
push dword [edi + 0x14]
push 1
push eax
push ebp
push edi
call fcn.005412a0
add esp, 0x14
jmp 0x542001
mov eax, dword [edi + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x2c]
push edi
mov dword [esp + 0x14], eax
call fcn.005432b0
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, dword [edi + 0x18]
jne 0x542033
push dword [esp + 0x2c]
push 0x81
push ebx
call fcn.0051a370
mov eax, dword [ebx + 0x74]
add esp, 0xc
test eax, eax
jle 0x542033
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [ebx + 0x70]
mov word [eax + ecx*4 - 0x12], dx
cmp dword [esp + 0x38], 0
mov eax, dword [ebx + 0x74]
je 0x5420a8
add eax, 2
push eax
push dword [esp + 0x30]
push 5
push ebx
call fcn.0051a3d0
mov edx, dword [ebx + 0x74]
add esp, 0x10
mov dword [esp + 0x1c], edx
cmp dword [ebx + 0x78], edx
jg 0x542073
push 0
push 0
push 0
push 0xb
push ebx
call fcn.004ceed0
add esp, 0x14
mov dword [esp + 0x1c], eax
jmp 0x5420db
lea eax, [edx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x5420db
mov ecx, dword [esp + 0x18]
inc ecx
add eax, ecx
push eax
push dword [esp + 0x30]
push 5
push ebx
call fcn.0051a3d0
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x54215f
push dword [esp + 0x14]
push 0
push 0xb
push ebx
call fcn.0051a3d0
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x54215f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x5420ff
mov ecx, dword [ecx]
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x542107
push ecx
push esi
call fcn.00502db0
add esp, 8
jmp 0x542109
mov dword [esp + 0x18], 0
xor eax, eax
push eax
push dword [esp + 0x30]
mov dword [esp + 0x38], eax
push edi
call fcn.005431a0
push dword [esp + 0x30]
mov edi, dword [esp + 0x40]
push dword [esp + 0x20]
push edi
push dword [ebp + 0xc]
push esi
call fcn.00542da0
mov eax, dword [esp + 0x38]
add esp, 0x20
cmp eax, 1
jne 0x542154
test edi, edi
je 0x54215f
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x54215f
movzx eax, al
mov dword [esi + eax*4 + 0x98], edi
inc byte [esi + 0x13]
jmp 0x54215f
cmp eax, dword [esi + 0x1c]
jle 0x54215f
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x542175
push eax
push 0
push 0xb
push ebx
call fcn.0051a3d0
add esp, 0x10
mov edx, dword [ebx + 0xc]
mov ebp, dword [esp + 0x14]
not ebp
mov eax, dword [edx + 0x3c]
add eax, dword [edx + 0x38]
jns 0x54219d
push ebp
push ebx
push edx
call fcn.004e0f70
mov eax, dword [esp + 0x28]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [edx + 0x40]
mov ecx, dword [ebx + 0x74]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [edx + ebp*4], ecx
pop ebp
pop ebx
add esp, 0x18
ret