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

Disassembly:
push 0xffffffffffffffff
push 0x5e65e8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x638190]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebp
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x1c], eax
mov ax, word [esi + 0x20]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x24]
and ax, 0xfff9
cmp dword [esp + 0x84], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
movzx eax, ax
jne 0x51ddbb
cmp dword [esp + 0x80], 0
je 0x51dd5f
cmp edx, dword [esp + 0x1c]
jge 0x51dd23
cmp ax, 1
jne 0x51dcef
mov ecx, edi
call fcn.004f4030
mov esi, dword [esp + 0x14]
lea ecx, [edi + 4]
push ecx
mov ecx, esi
call fcn.004f4410
push esi
mov ecx, ebp
call fcn.004f2e40
push edi
lea ecx, [ebp + 0x24]
call fcn.004f2e40
mov eax, 2
jmp 0x51dfc1
lea esi, [edi + 0x24]
mov ecx, esi
call fcn.004f4030
add edi, 0x28
push edi
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.004f4410
push edi
mov ecx, ebp
call fcn.004f2e40
push esi
lea ecx, [ebp + 0x24]
call fcn.004f2e40
mov eax, 2
jmp 0x51dfc1
cmp ax, 1
jne 0x51dd37
lea edx, [edi + 0x30]
push edx
call fcn.004f42e0
add edi, 0x24
jmp 0x51dd40
lea edx, [edi + 0xc]
push edx
call fcn.004f42e0
push edi
mov ecx, ebp
call fcn.004f2e40
mov eax, dword [esp + 0x14]
push eax
lea ecx, [ebp + 0x24]
call fcn.004f2e40
mov eax, 2
jmp 0x51dfc1
cmp edx, dword [esp + 0x1c]
jge 0x51dda0
cmp ax, 1
jne 0x51dd84
mov ecx, edi
call fcn.004f4030
push edi
mov ecx, ebp
call fcn.004f2e40
mov eax, 1
jmp 0x51dfc1
lea esi, [edi + 0x24]
mov ecx, esi
call fcn.004f4030
push esi
mov ecx, ebp
call fcn.004f2e40
mov eax, 1
jmp 0x51dfc1
cmp ax, 1
jne 0x51dda9
add edi, 0x24
push edi
mov ecx, ebp
call fcn.004f2e40
mov eax, 1
jmp 0x51dfc1
lea ecx, [esp + 0x38]
call fcn.004f1250
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
cmp dword [esp + 0x80], ebp
je 0x51df71
cmp dword [esp + 0x20], ecx
jge 0x51dec8
mov edx, dword [esp + 0x18]
add edx, 0x24
push edx
lea ecx, [esp + 0x3c]
call fcn.004f2e40
lea ecx, [esp + 0x38]
call fcn.004f4030
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 4]
lea edi, [ebx + 4]
jne 0x51de22
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [edi + 4]
je 0x51de9b
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push ebx
call fcn.00503420
add esp, 0xc
cmp eax, ebp
je 0x51de53
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.004f4410
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x3c]
call fcn.004f42e0
mov ecx, ebx
call fcn.004f41c0
fstp qword [esp + 0x20]
mov ecx, esi
call fcn.004f41c0
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x51dea5
push edi
mov ecx, ebx
call fcn.004f4410
mov esi, dword [esp + 0x10]
push ebx
mov ecx, esi
call fcn.004f2e40
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0x24]
call fcn.004f2e40
mov esi, 2
jmp 0x51dfae
push edi
lea ecx, [esp + 0x3c]
call fcn.004f42e0
mov esi, dword [esp + 0x10]
push ebx
mov ecx, esi
call fcn.004f2e40
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0x24]
call fcn.004f2e40
mov esi, 2
jmp 0x51dfae
mov ecx, dword [esp + 0x18]
add ecx, 0x24
push ecx
lea ecx, [esp + 0x3c]
call fcn.004f2e40
mov edx, dword [ebx + 0xc]
lea edi, [ebx + 0xc]
cmp edx, dword [ebx + 4]
lea eax, [ebx + 4]
jne 0x51deef
mov ecx, dword [edi + 4]
cmp ecx, dword [eax + 4]
je 0x51df47
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00503420
add esp, 0xc
cmp eax, ebp
je 0x51df20
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.004f42e0
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x3c]
call fcn.004f4410
mov ecx, ebx
call fcn.004f41c0
fstp qword [esp + 0x20]
mov ecx, esi
call fcn.004f41c0
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x51df51
push edi
mov ecx, ebx
call fcn.004f42e0
jmp 0x51df51
push eax
lea ecx, [esp + 0x3c]
call fcn.004f4410
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.004f2e40
push ebx
lea ecx, [esi + 0x24]
call fcn.004f2e40
mov esi, 2
jmp 0x51dfae
cmp dword [esp + 0x20], ecx
jge 0x51df98
mov edx, dword [esp + 0x18]
add edx, 0x24
push edx
lea ecx, [esp + 0x3c]
call fcn.004f2e40
lea ecx, [esp + 0x38]
call fcn.004f4030
lea eax, [esp + 0x38]
push eax
jmp 0x51dfa0
mov ecx, dword [esp + 0x18]
add ecx, 0x24
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004f2e40
mov esi, 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x68], 0xffffffff
call fcn.004f1b60
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.005c3bb6
add esp, 0x5c
ret