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

Disassembly:
sub esp, 0x20
mov eax, 0x92492493
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x6c]
sub ecx, edx
xor esi, esi
imul ecx
add edx, ecx
push edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x503a34
xor edi, edi
mov ecx, dword [ebx + 0x6c]
mov edx, dword [edi + ecx + 0x34]
lea eax, [edi + ecx + 0x34]
cmp edx, dword [0x548f1c]
je 0x503a11
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004df1c0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00504dc0
mov ecx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x6c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
inc esi
sar edx, 5
mov eax, edx
add edi, 0x38
shr eax, 0x1f
add edx, eax
cmp esi, edx
jb 0x5039dc
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x78]
sub ecx, edx
mov eax, 0x92492493
imul ecx
add edx, ecx
xor esi, esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
je 0x503a9c
xor edi, edi
mov edx, dword [ebx + 0x78]
mov ecx, dword [0x548f1c]
lea eax, [edx + edi + 0x34]
mov edx, dword [edx + edi + 0x34]
cmp edx, ecx
je 0x503a79
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x20]
push eax
push edx
call fcn.004df1c0
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x78]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
inc esi
sar edx, 5
mov eax, edx
add edi, 0x38
shr eax, 0x1f
add edx, eax
cmp esi, edx
jb 0x503a55
mov ecx, dword [ebx + 0x88]
mov ebp, dword [ebx + 0x84]
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
mov dword [esp + 0x14], 0
shr ecx, 0x1f
add edx, ecx
je 0x503bb3
xor edi, edi
mov ecx, dword [ebx + 0x84]
mov eax, 0x2aaaaaab
xor esi, esi
mov edx, dword [ecx + edi + 4]
mov ebp, dword [ecx + edi]
sub edx, ebp
mov dword [esp + 0x10], esi
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x503b81
mov eax, dword [ecx + edi]
xor ebp, ebp
mov edx, dword [eax + esi + 4]
sub edx, dword [eax + esi]
sar edx, 2
je 0x503b4e
mov eax, dword [eax + esi]
mov ebx, dword [0x548f1c]
lea edx, [ebp*4]
cmp dword [eax + edx], ebx
je 0x503b32
mov ecx, dword [ecx + edi]
mov eax, dword [ecx + esi]
lea ecx, [esp + 0x20]
add eax, edx
push eax
push ecx
mov ecx, dword [esp + 0x40]
call fcn.004df1c0
mov ebx, dword [esp + 0x34]
inc ebp
mov ecx, dword [ebx + 0x84]
mov eax, dword [ecx + edi]
mov edx, dword [eax + esi + 4]
sub edx, dword [eax + esi]
sar edx, 2
cmp ebp, edx
jb 0x503b06
mov ecx, dword [ebx + 0x84]
mov eax, edi
mov ebp, dword [esp + 0x10]
add esi, 0xc
mov edx, dword [eax + ecx + 4]
inc ebp
sub edx, dword [eax + ecx]
mov eax, 0x2aaaaaab
mov dword [esp + 0x10], ebp
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebp, edx
jb 0x503af5
mov ecx, dword [ebx + 0x88]
mov edx, dword [ebx + 0x84]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
mov esi, dword [esp + 0x14]
add edi, 0xc
sar edx, 1
mov ecx, edx
inc esi
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x14], esi
cmp esi, edx
jb 0x503aca
mov ecx, dword [ebx + 0x94]
mov eax, dword [ebx + 0x90]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
xor esi, esi
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x34], esi
je 0x503c64
mov eax, dword [ebx + 0x90]
xor edi, edi
mov ecx, dword [eax + esi + 4]
mov ebp, dword [eax + esi]
sub ecx, ebp
sar ecx, 2
je 0x503c32
mov edx, dword [eax + esi]
mov ebp, dword [0x548f1c]
lea ecx, [edi*4]
cmp dword [ecx + edx], ebp
je 0x503c1b
mov ebp, edx
lea eax, [esp + 0x20]
add ecx, ebp
push ecx
mov ecx, dword [esp + 0x3c]
push eax
call fcn.004df1c0
mov eax, dword [ebx + 0x90]
inc edi
mov ecx, dword [eax + esi + 4]
mov edx, dword [eax + esi]
sub ecx, edx
sar ecx, 2
cmp edi, ecx
jb 0x503bf3
mov ecx, dword [ebx + 0x94]
mov edx, dword [ebx + 0x90]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
mov edi, dword [esp + 0x34]
add esi, 0xc
sar edx, 1
mov eax, edx
inc edi
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x34], edi
cmp edi, edx
jb 0x503bdd
mov eax, dword [ebx + 0x108]
mov esi, dword [eax]
cmp esi, eax
je 0x503cdc
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
sub ecx, edx
xor edi, edi
sar ecx, 2
je 0x503cb1
mov edx, dword [esi + 0xc]
mov ecx, dword [0x548f1c]
lea eax, [edx + edi*4]
mov edx, dword [edx + edi*4]
cmp edx, ecx
je 0x503ca1
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x20]
push eax
push edx
call fcn.004df1c0
mov eax, dword [esi + 0x10]
mov ebp, dword [esi + 0xc]
sub eax, ebp
inc edi
sar eax, 2
cmp edi, eax
jb 0x503c7f
mov ecx, dword [0x548f1c]
mov edx, dword [esi + 0x18]
lea eax, [esi + 0x18]
cmp edx, ecx
je 0x503cd0
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x18]
push eax
push edx
call fcn.004df1c0
mov esi, dword [esi]
mov eax, dword [ebx + 0x108]
cmp esi, eax
jne 0x503c70
mov eax, dword [ebx + 0x10c]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x10], ecx
je 0x503e65
mov esi, dword [esp + 0x10]
mov ecx, dword [0x548f1c]
mov edx, dword [esi + 8]
lea eax, [esi + 8]
cmp edx, ecx
je 0x503d17
mov ebp, dword [esp + 0x38]
lea edx, [esp + 0x28]
push eax
push edx
mov ecx, ebp
call fcn.004df1c0
jmp 0x503d1b
mov ebp, dword [esp + 0x38]
mov ecx, dword [0x548f1c]
mov edx, dword [esi + 0xc]
lea eax, [esi + 0xc]
cmp edx, ecx
je 0x503e4d
mov edx, dword [ebp]
mov cl, 1
mov edi, edx
mov esi, dword [edx + 4]
test esi, esi
je 0x503d59
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
mov edi, esi
cmp eax, ecx
setl cl
test cl, cl
je 0x503d52
mov esi, dword [esi + 8]
jmp 0x503d55
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x503d3f
mov eax, edi
test cl, cl
mov dword [esp + 0x14], eax
je 0x503e09
cmp edi, dword [edx + 8]
jne 0x503dfc
cmp edi, edx
je 0x503da1
test esi, esi
jne 0x503da1
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0xc]
lea eax, [edx + 0xc]
cmp ecx, dword [edi + 0x10]
jl 0x503da1
push eax
mov ecx, ebp
call fcn.004df310
mov esi, eax
mov dword [edi + 0xc], esi
mov eax, dword [ebp]
cmp edi, dword [eax + 0xc]
jne 0x503dcf
mov dword [eax + 0xc], esi
jmp 0x503dcf
mov edx, dword [esp + 0x10]
mov ecx, ebp
lea eax, [edx + 0xc]
push eax
call fcn.004df310
mov esi, eax
mov dword [edi + 8], esi
mov eax, dword [ebp]
cmp edi, eax
jne 0x503dc7
mov dword [eax + 4], esi
mov eax, dword [ebp]
mov dword [eax + 0xc], esi
jmp 0x503dcf
cmp edi, dword [eax + 8]
jne 0x503dcf
mov dword [eax + 8], esi
xor eax, eax
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [ebp]
add ecx, 4
push ecx
push esi
call fcn.004e57a0
mov eax, dword [ebp + 4]
add esp, 8
inc eax
mov dword [esp + 0x20], esi
mov dword [ebp + 4], eax
mov byte [esp + 0x24], 1
jmp 0x503e4d
push edi
call fcn.004e3530
add esp, 4
mov dword [esp + 0x14], eax
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x10]
add eax, 0xc
cmp edx, dword [eax]
jge 0x503e35
lea ecx, [esp + 0x34]
lea edx, [esp + 0x18]
push ecx
push 0
push eax
push edi
push esi
push edx
mov ecx, ebp
mov byte [esp + 0x4c], 1
call fcn.005055f0
push eax
jmp 0x503e44
lea eax, [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x38], 0
push ecx
lea ecx, [esp + 0x28]
call fcn.00504dc0
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x10c]
mov eax, dword [edx]
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x503cf0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x20
ret