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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x1d], dl
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x504124
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1e], 0
cmp byte [ebp - 0x1d], 0
jne 0x503c67
mov eax, dword [ebp - 0x1c]
test byte [eax + 0x1c], 0x10
jne 0x5040ec
mov eax, dword [ebp - 0x1c]
call fcn.005046e8
test al, al
je 0x5040ec
lea eax, [ebp - 4]
mov edx, dword [0x5583e8]
call fcn.00407a3c
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5040e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x43b658]
call fcn.00449b38
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x43b658]
call fcn.00449b38
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x43b658]
call fcn.00449b38
mov dword [ebp - 0x24], eax
mov dl, 1
mov eax, dword [0x43b658]
call fcn.00449b38
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
call fcn.00502900
dec eax
test eax, eax
jl 0x503e07
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0050292c
cmp byte [eax + 0x42], 0
je 0x503dfb
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0050292c
mov eax, dword [eax + 0x38]
mov edx, 0x504140
call fcn.00408600
je 0x503dfb
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0050292c
cmp dword [eax + 0x38], 0
je 0x503dfb
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0050292c
mov eax, dword [eax + 0x38]
lea edx, [ebp - 0x54]
call fcn.00506eac
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x38]
call fcn.0041e588
cmp dword [ebp - 0x38], 0
jne 0x503d89
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0050292c
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0050292c
mov ecx, dword [eax + 0x38]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x64]
jmp 0x503dfb
mov edx, dword [0x5583e8]
mov eax, dword [ebp - 0x38]
call fcn.00425df8
test eax, eax
je 0x503dfb
push ebp
mov eax, dword [ebp - 0x38]
call fcn.00503950
pop ecx
test al, al
jne 0x503dfb
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0050292c
add eax, 0x38
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0050292c
mov eax, dword [eax + 0x38]
lea edx, [ebp - 0x58]
call fcn.00506d6c
mov edx, dword [ebp - 0x58]
pop eax
call fcn.004079f4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0050292c
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0050292c
mov ecx, dword [eax + 0x38]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x64]
inc dword [ebp - 0x28]
dec dword [ebp - 0x44]
jne 0x503cf4
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 4]
call fcn.00407a3c
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x503fb8
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x40]
call fcn.00407a3c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, 0
jl 0x503f3e
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0x30], 1
jmp 0x503f20
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
cmp word [eax + edx*2 - 2], 0xd800
jb 0x503e9e
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
cmp word [eax + edx*2 - 2], 0xdfff
ja 0x503e9e
inc dword [ebp - 0x30]
jmp 0x503f1d
lea eax, [ebp - 0x5c]
push eax
mov ecx, 1
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
call fcn.00408638
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x38]
call fcn.0041e588
push ebp
mov eax, dword [ebp - 0x38]
call fcn.00503950
pop ecx
test al, al
je 0x503f1d
mov eax, dword [0x558ed4]
cmp byte [eax + 0xc], 0
je 0x503ee8
push ebp
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
call fcn.00503a24
pop ecx
jmp 0x503ef8
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov eax, 0x504150
call fcn.004086e4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x503f31
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
call fcn.00407b04
cmp eax, dword [ebp - 0x30]
jge 0x503e7b
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0xffffffff
jne 0x503e61
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x10]
jle 0x503f52
push ebp
call fcn.00503994
pop ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x503fb8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x503fac
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ecx, eax
dec ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x78]
inc dword [ebp - 0x28]
dec dword [ebp - 0x48]
jne 0x503f76
inc dword [ebp - 0x2c]
dec dword [ebp - 0x44]
jne 0x503e2e
cmp dword [ebp - 0x10], 0
jne 0x503fc5
push ebp
call fcn.00503994
pop ecx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
setg byte [ebp - 0x1e]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5040b7
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x558ed4]
cmp byte [eax + 0xc], 0
je 0x504095
mov edx, dword [ebp - 0x3c]
mov eax, 0x504150
call fcn.00425df8
test eax, eax
jne 0x504095
cmp dword [ebp - 0x18], 0
je 0x504095
mov edx, dword [ebp - 0x3c]
mov eax, 0x504150
call fcn.00425df8
test eax, eax
jne 0x504095
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x50404b
mov eax, dword [ebp - 0x4c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
push ebp
lea eax, [ebp - 0x60]
push eax
mov ecx, 1
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
call fcn.00408638
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x3c]
xor ecx, ecx
call fcn.00503a24
pop ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x504085
mov eax, dword [ebp - 0x50]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [ebp - 0x50]
call fcn.00408680
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
add eax, 0x38
mov edx, dword [ebp - 0x3c]
call fcn.004079f4
inc dword [ebp - 0x28]
dec dword [ebp - 0x44]
jne 0x503fef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5040ec
mov eax, dword [ebp - 8]
call fcn.0040598c
mov eax, dword [ebp - 0x24]
call fcn.0040598c
mov eax, dword [ebp - 0x14]
call fcn.0040598c
mov eax, dword [ebp - 0xc]
call fcn.0040598c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50412b
lea eax, [ebp - 0x60]
mov edx, 4
call fcn.00407674
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00407674
lea eax, [ebp - 0x18]
call fcn.00407614
lea eax, [ebp - 4]
call fcn.00407614
ret