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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov cl, byte [0x1438c]
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
and cl, 1
neg cl
sbb ecx, ecx
and ecx, 0xc
add ecx, 0x74
cmp dword [eax], ecx
jae 0x53b087
mov eax, 0xc000000d
jmp 0x53b278
push ebx
push esi
push edi
mov edi, dword [eax + 8]
lea eax, [ebp - 4]
push eax
mov dword [ebp + 0xc], edi
call fcn.0053af8e
mov ebx, dword [ebp - 4]
mov esi, eax
test esi, esi
jl 0x53b269
xor esi, esi
mov dword [ebx + 4], esi
mov dword [ebx], esi
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], 0x4252454b
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], esi
mov eax, dword [edi + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x50]
mov dword [ebx + 0x48], eax
mov eax, dword [edi + 0x54]
mov dword [ebx + 0x4c], eax
mov eax, dword [edi + 0x58]
mov dword [ebx + 0x50], eax
mov eax, dword [edi + 0x5c]
mov dword [ebx + 0x54], eax
mov eax, dword [edi + 0x60]
mov dword [ebx + 0x58], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x4c], eax
mov eax, dword [edi + 0x3c]
mov dword [ebx + 0x38], eax
xor eax, eax
mov ax, word [edi + 0x28]
add ax, word [edi + 0x20]
push 0x4362724b
add eax, 2
mov word [ebx + 0x2a], ax
movzx eax, ax
push eax
push dword [0x146b0]
call dword [0x12c7c]
cmp eax, esi
mov dword [ebx + 0x2c], eax
je 0x53b264
mov cx, word [edi + 0x28]
cmp cx, si
je 0x53b170
mov esi, dword [edi + 0x2c]
movzx ecx, cx
mov edx, ecx
shr ecx, 2
add esi, edi
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx + 0x28]
mov edi, dword [ebp + 0xc]
add eax, ecx
mov word [eax], 0x5c
inc eax
inc eax
xor esi, esi
mov cx, word [edi + 0x20]
cmp cx, si
je 0x53b19f
mov esi, dword [edi + 0x24]
movzx ecx, cx
mov edx, ecx
shr ecx, 2
add esi, edi
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx + 0x20]
mov edi, dword [ebp + 0xc]
add eax, ecx
xor esi, esi
sub ax, word [ebx + 0x2c]
mov word [ebx + 0x28], ax
mov eax, dword [edi + 0x44]
mov dword [ebx + 0x3c], eax
mov eax, dword [edi + 0x4c]
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x53b1f1
push 0x4362724b
push eax
push dword [0x146b0]
call dword [0x12c7c]
cmp eax, esi
mov dword [ebx + 0x44], eax
je 0x53b264
mov esi, dword [edi + 0x48]
mov ecx, dword [ebx + 0x40]
add esi, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [edi + 0x70]
mov dword [ebx + 0x60], eax
cmp dword [edi + 0x6c], esi
je 0x53b234
push 0x4362724b
push eax
push dword [0x146b0]
call dword [0x12c7c]
cmp eax, esi
mov dword [ebx + 0x5c], eax
je 0x53b264
mov esi, dword [edi + 0x6c]
mov ecx, dword [ebx + 0x60]
add esi, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
xor esi, esi
jmp 0x53b237
mov dword [ebx + 0x5c], esi
test byte [0x1438c], 1
je 0x53b2a4
mov eax, dword [edi + 0x78]
mov dword [ebx + 0x68], eax
cmp dword [edi + 0x74], esi
je 0x53b299
push 0x4362724b
push eax
push dword [0x146b0]
call dword [0x12c7c]
cmp eax, esi
mov dword [ebx + 0x64], eax
jne 0x53b27c
mov esi, 0xc000009a
test ebx, ebx
je 0x53b273
push ebx
call fcn.00531481
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov esi, dword [edi + 0x74]
mov ecx, dword [ebx + 0x68]
add esi, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
jmp 0x53b29c
mov dword [ebx + 0x64], esi
mov eax, dword [edi + 0x7c]
mov dword [ebx + 0x6c], eax
jmp 0x53b2ad
mov dword [ebx + 0x68], esi
mov dword [ebx + 0x64], esi
mov dword [ebx + 0x6c], esi
push ebx
call fcn.0053afe7
mov esi, eax
test esi, esi
jl 0x53b269
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x53b273