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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd0
push ebx
push ebp
push esi
mov esi, ecx
cmp byte [esi + 0x21], 0
push edi
mov dword [esp + 0x14], esi
jne 0x51db36
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call fcn.0061975c
add esp, 4
cmp byte [esi + 4], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
je 0x51dc17
cmp byte [esi + 0x23], 0
je 0x51dc17
add esi, 0x24
lea eax, [esp + 0x50]
push esi
push eax
call fcn.006169d1
add esp, 8
test eax, eax
jne 0x51db77
mov ebp, dword [esp + 0x54]
jmp 0x51db7a
or ebp, 0xffffffff
lea ecx, [esp + 0x74]
push esi
push ecx
call fcn.006169d1
add esp, 8
test eax, eax
jne 0x51db92
mov ebx, dword [esp + 0x7c]
jmp 0x51db95
or ebx, 0xffffffff
mov edi, dword [esp + 0x14]
add edi, 0x2c
lea edx, [esp + 0x98]
push edi
push edx
call fcn.006169d1
mov esi, eax
neg esi
sbb esi, esi
lea eax, [esp + 0x34]
push edi
not esi
and esi, dword [esp + 0xb0]
push eax
call fcn.006169d1
add esp, 0x10
test eax, eax
jne 0x51dbd2
mov eax, dword [esp + 0x3c]
inc eax
jmp 0x51dbd4
xor eax, eax
push 0xffffffffffffffff
push 0
push ebp
push ebx
push esi
push eax
mov ecx, edi
call fcn.0043b6e0
push eax
lea ecx, [esp + 0x30]
call fcn.004abd40
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
jl 0x51dc0d
jg case.default.0x51de68
cmp ecx, eax
ja case.default.0x51de68
sub eax, ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.006169d1
add esp, 8
test eax, eax
jne 0x51dc34
mov eax, dword [esp + 0x44]
inc eax
jmp 0x51dc36
xor eax, eax
dec eax
cmp eax, 6
ja case.default.0x51dc40
jmp dword [eax*4 + 0x51e21c]
mov ecx, esi
test byte [ecx + 0x3c], 0x40
jmp 0x51dc7d
mov edx, esi
test byte [edx + 0x3c], 1
jmp 0x51dc7d
mov eax, esi
test byte [eax + 0x3c], 2
jmp 0x51dc7d
mov ecx, esi
test byte [ecx + 0x3c], 4
jmp 0x51dc7d
mov edx, esi
test byte [edx + 0x3c], 8
jmp 0x51dc7d
mov eax, esi
test byte [eax + 0x3c], 0x10
jmp 0x51dc7d
mov ecx, esi
test byte [ecx + 0x3c], 0x20
je case.default.0x51dc40
add esi, 0x24
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.006169d1
add esp, 8
test eax, eax
jne 0x51dc9e
mov edi, dword [esp + 0x30]
jmp 0x51dca1
or edi, 0xffffffff
lea eax, [esp + 0x98]
push esi
push eax
call fcn.006169d1
add esp, 8
test eax, eax
jne 0x51dcbf
mov ebp, dword [esp + 0xa0]
jmp 0x51dcc2
or ebp, 0xffffffff
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.006169d1
mov esi, eax
neg esi
sbb esi, esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x5c]
not esi
and esi, dword [esp + 0x8c]
push ecx
call fcn.006169d1
add esp, 0x10
test eax, eax
jne 0x51dcfd
mov ebx, dword [esp + 0x60]
inc ebx
jmp 0x51dcff
xor ebx, ebx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xc0]
push eax
call fcn.006169d1
add esp, 8
test eax, eax
jne 0x51dd26
mov eax, dword [esp + 0xd0]
add eax, 0x76c
jmp 0x51dd28
xor eax, eax
push 0xffffffffffffffff
push 0
push edi
push ebp
push esi
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.004abd40
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
jg 0x51dd5e
jl 0x51dd52
cmp ebx, esi
jae 0x51dd5e
mov eax, esi
sub eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x14]
cmp byte [edi + 4], 0
jne case.default.0x51dc40
cmp byte [edi + 0xc], 0
je case.default.0x51dc40
cmp byte [edi + 0x22], 0
je 0x51ddd1
push 0xffffffffffffffff
lea ebx, [edi + 0x34]
push 0
mov ecx, ebx
call fcn.0044fee0
push eax
mov ecx, ebx
call fcn.0044feb0
push eax
lea ecx, [esp + 0x2c]
call fcn.0043b740
push eax
lea ecx, [esp + 0x30]
call fcn.0043b710
push eax
lea ecx, [esp + 0x34]
call fcn.0043b6e0
push eax
lea ecx, [esp + 0x40]
call fcn.004abd40
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push edx
push ebx
lea ecx, [esp + 0x2c]
call fcn.0051cee0
test al, al
jne case.default.0x51dc40
mov eax, dword [edi + 8]
test eax, eax
je case.default.0x51dc40
push 0xffffffffffffffff
mov ecx, eax
shl ecx, 4
push 0x3b
sub ecx, eax
push 0x3b
lea esi, [esi + ecx*4]
push 0x17
lea ecx, [esp + 0x2c]
call fcn.0043b740
push eax
lea ecx, [esp + 0x30]
call fcn.0043b710
push eax
lea ecx, [esp + 0x34]
call fcn.0043b6e0
push eax
lea ecx, [esp + 0x40]
call fcn.004abd40
mov ecx, dword [esp + 0x24]
cmp esi, ecx
jge case.default.0x51dc40
lea esp, [esp]
cmp esi, ebx
jg 0x51dd52
mov eax, dword [edi + 8]
mov edx, eax
shl edx, 4
sub edx, eax
lea esi, [esi + edx*4]
cmp esi, ecx
jl 0x51de20
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xc0]
push ecx
call fcn.006169d1
add esp, 8
test eax, eax
jne 0x51de5c
mov eax, dword [esp + 0xd4]
inc eax
jmp 0x51de5e
xor eax, eax
dec eax
cmp eax, 6
ja case.default.0x51de68
jmp dword [eax*4 + 0x51e238]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 1
jne 0x51e11e
test al, 2
je 0x51de8c
mov esi, 2
jmp 0x51e123
test al, 4
je 0x51de9a
mov esi, 3
jmp 0x51e123
test al, 8
je 0x51dea8
mov esi, 4
jmp 0x51e123
test al, 0x10
je 0x51deb6
mov esi, 5
jmp 0x51e123
test al, 0x20
je 0x51dec4
mov esi, 6
jmp 0x51e123
test al, 0x40
je case.default.0x51de68
mov esi, 7
jmp 0x51e123
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 2
jne 0x51e11e
test al, 4
je 0x51def3
mov esi, 2
jmp 0x51e123
test al, 8
je 0x51df01
mov esi, 3
jmp 0x51e123
test al, 0x10
je 0x51df0f
mov esi, 4
jmp 0x51e123
test al, 0x20
je 0x51df1d
mov esi, 5
jmp 0x51e123
test al, 0x40
je 0x51df2b
mov esi, 6
jmp 0x51e123
test al, 1
je case.default.0x51de68
mov esi, 7
jmp 0x51e123
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 4
jne 0x51e11e
test al, 8
je 0x51df5a
mov esi, 2
jmp 0x51e123
test al, 0x10
je 0x51df68
mov esi, 3
jmp 0x51e123
test al, 0x20
je 0x51df76
mov esi, 4
jmp 0x51e123
test al, 0x40
je 0x51df84
mov esi, 5
jmp 0x51e123
test al, 1
je 0x51df92
mov esi, 6
jmp 0x51e123
test al, 2
je case.default.0x51de68
mov esi, 7
jmp 0x51e123
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 8
jne 0x51e11e
test al, 0x10
je 0x51dfc1
mov esi, 2
jmp 0x51e123
test al, 0x20
je 0x51dfcf
mov esi, 3
jmp 0x51e123
test al, 0x40
je 0x51dfdd
mov esi, 4
jmp 0x51e123
test al, 1
je 0x51dfeb
mov esi, 5
jmp 0x51e123
test al, 2
je 0x51dff9
mov esi, 6
jmp 0x51e123
test al, 4
je case.default.0x51de68
mov esi, 7
jmp 0x51e123
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 0x10
jne 0x51e11e
test al, 0x20
je 0x51e028
mov esi, 2
jmp 0x51e123
test al, 0x40
je 0x51e036
mov esi, 3
jmp 0x51e123
test al, 1
je 0x51e044
mov esi, 4
jmp 0x51e123
test al, 2
je 0x51e052
mov esi, 5
jmp 0x51e123
test al, 4
je 0x51e060
mov esi, 6
jmp 0x51e123
test al, 8
je case.default.0x51de68
mov esi, 7
jmp 0x51e123
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 0x20
jne 0x51e11e
test al, 0x40
je 0x51e08f
mov esi, 2
jmp 0x51e123
test al, 1
je 0x51e09d
mov esi, 3
jmp 0x51e123
test al, 2
je 0x51e0a8
mov esi, 4
jmp 0x51e123
test al, 4
je 0x51e0b3
mov esi, 5
jmp 0x51e123
test al, 8
je 0x51e0be
mov esi, 6
jmp 0x51e123
test al, 0x10
je case.default.0x51de68
mov esi, 7
jmp 0x51e123
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 0x40
jne 0x51e11e
test al, 1
je 0x51e0e3
mov esi, 2
jmp 0x51e123
test al, 2
je 0x51e0ee
mov esi, 3
jmp 0x51e123
test al, 4
je 0x51e0f9
mov esi, 4
jmp 0x51e123
test al, 8
je 0x51e104
mov esi, 5
jmp 0x51e123
test al, 0x10
je 0x51e10f
mov esi, 6
jmp 0x51e123
test al, 0x20
je case.default.0x51de68
mov esi, 7
jmp 0x51e123
mov esi, 1
lea edi, [ecx + 0x24]
lea edx, [esp + 0xbc]
push edi
push edx
call fcn.006169d1
add esp, 8
test eax, eax
jne 0x51e148
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x14], eax
jmp 0x51e150
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.006169d1
add esp, 8
test eax, eax
jne 0x51e168
mov ebp, dword [esp + 0x34]
jmp 0x51e16b
or ebp, 0xffffffff
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.006169d1
mov edi, eax
neg edi
sbb edi, edi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x80]
not edi
and edi, dword [esp + 0xb0]
push edx
call fcn.006169d1
add esp, 0x10
test eax, eax
jne 0x51e1af
mov ebx, dword [esp + 0x84]
inc ebx
jmp 0x51e1b1
xor ebx, ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.006169d1
add esp, 8
test eax, eax
jne 0x51e1d2
mov eax, dword [esp + 0x64]
add eax, 0x76c
jmp 0x51e1d4
xor eax, eax
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push edx
push ebp
push edi
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.004abd40
push 0
push 0
push 0
push esi
lea ecx, [esp + 0x24]
call fcn.0051ce80
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
mov eax, dword [eax + 4]
add edx, ecx
mov ecx, dword [esp + 0x28]
adc ecx, eax
mov eax, edx
sub eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret