Function at 0x5145c0
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 0x5145e6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call fcn.005fc6e2
add esp, 4
cmp byte [esi + 4], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
je 0x5146c7
cmp byte [esi + 0x23], 0
je 0x5146c7
add esi, 0x24
lea eax, [esp + 0x50]
push esi
push eax
call fcn.005f97f1
add esp, 8
test eax, eax
jne 0x514627
mov ebp, dword [esp + 0x54]
jmp 0x51462a
or ebp, 0xffffffff
lea ecx, [esp + 0x74]
push esi
push ecx
call fcn.005f97f1
add esp, 8
test eax, eax
jne 0x514642
mov ebx, dword [esp + 0x7c]
jmp 0x514645
or ebx, 0xffffffff
mov edi, dword [esp + 0x14]
add edi, 0x2c
lea edx, [esp + 0x98]
push edi
push edx
call fcn.005f97f1
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.005f97f1
add esp, 0x10
test eax, eax
jne 0x514682
mov eax, dword [esp + 0x3c]
inc eax
jmp 0x514684
xor eax, eax
push 0xffffffffffffffff
push 0
push ebp
push ebx
push esi
push eax
mov ecx, edi
call fcn.0043a180
push eax
lea ecx, [esp + 0x30]
call fcn.004a37a0
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
jl 0x5146bd
jg case.default.0x51490d
cmp ecx, eax
ja case.default.0x51490d
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.005f97f1
add esp, 8
test eax, eax
jne 0x5146e4
mov eax, dword [esp + 0x44]
inc eax
jmp 0x5146e6
xor eax, eax
dec eax
cmp eax, 6
ja case.default.0x5146f0
jmp dword [eax*4 + 0x514cc0]
mov ecx, esi
test byte [ecx + 0x3c], 0x40
jmp 0x51472d
mov edx, esi
test byte [edx + 0x3c], 1
jmp 0x51472d
mov eax, esi
test byte [eax + 0x3c], 2
jmp 0x51472d
mov ecx, esi
test byte [ecx + 0x3c], 4
jmp 0x51472d
mov edx, esi
test byte [edx + 0x3c], 8
jmp 0x51472d
mov eax, esi
test byte [eax + 0x3c], 0x10
jmp 0x51472d
mov ecx, esi
test byte [ecx + 0x3c], 0x20
je case.default.0x5146f0
add esi, 0x24
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.005f97f1
add esp, 8
test eax, eax
jne 0x51474e
mov edi, dword [esp + 0x30]
jmp 0x514751
or edi, 0xffffffff
lea eax, [esp + 0x98]
push esi
push eax
call fcn.005f97f1
add esp, 8
test eax, eax
jne 0x51476f
mov ebp, dword [esp + 0xa0]
jmp 0x514772
or ebp, 0xffffffff
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.005f97f1
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.005f97f1
add esp, 0x10
test eax, eax
jne 0x5147ad
mov ebx, dword [esp + 0x60]
inc ebx
jmp 0x5147af
xor ebx, ebx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xc0]
push eax
call fcn.005f97f1
add esp, 8
test eax, eax
jne 0x5147d6
mov eax, dword [esp + 0xd0]
add eax, 0x76c
jmp 0x5147d8
xor eax, eax
push 0xffffffffffffffff
push 0
push edi
push ebp
push esi
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.004a37a0
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
jg 0x51480e
jl 0x514802
cmp ebx, esi
jae 0x51480e
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.0x5146f0
cmp byte [edi + 0xc], 0
je case.default.0x5146f0
cmp byte [edi + 0x22], 0
je 0x514881
push 0xffffffffffffffff
lea ebx, [edi + 0x34]
push 0
mov ecx, ebx
call fcn.0044e360
push eax
mov ecx, ebx
call fcn.0044e330
push eax
lea ecx, [esp + 0x2c]
call fcn.0043a1e0
push eax
lea ecx, [esp + 0x30]
call fcn.0043a1b0
push eax
lea ecx, [esp + 0x34]
call fcn.0043a180
push eax
lea ecx, [esp + 0x40]
call fcn.004a37a0
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push edx
push ebx
lea ecx, [esp + 0x2c]
call fcn.005139c0
test al, al
jne case.default.0x5146f0
mov eax, dword [edi + 8]
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.0043a1e0
push eax
lea ecx, [esp + 0x30]
call fcn.0043a1b0
push eax
lea ecx, [esp + 0x34]
call fcn.0043a180
push eax
lea ecx, [esp + 0x40]
call fcn.004a37a0
mov ecx, dword [esp + 0x24]
cmp esi, ecx
jge case.default.0x5146f0
cmp esi, ebx
jg 0x514802
mov eax, dword [edi + 8]
mov edx, eax
shl edx, 4
sub edx, eax
lea esi, [esi + edx*4]
cmp esi, ecx
jl 0x5148c5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xc0]
push ecx
call fcn.005f97f1
add esp, 8
test eax, eax
jne 0x514901
mov eax, dword [esp + 0xd4]
inc eax
jmp 0x514903
xor eax, eax
dec eax
cmp eax, 6
ja case.default.0x51490d
jmp dword [eax*4 + 0x514cdc]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 1
jne 0x514bc3
test al, 2
je 0x514931
mov esi, 2
jmp 0x514bc8
test al, 4
je 0x51493f
mov esi, 3
jmp 0x514bc8
test al, 8
je 0x51494d
mov esi, 4
jmp 0x514bc8
test al, 0x10
je 0x51495b
mov esi, 5
jmp 0x514bc8
test al, 0x20
je 0x514969
mov esi, 6
jmp 0x514bc8
test al, 0x40
je case.default.0x51490d
mov esi, 7
jmp 0x514bc8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 2
jne 0x514bc3
test al, 4
je 0x514998
mov esi, 2
jmp 0x514bc8
test al, 8
je 0x5149a6
mov esi, 3
jmp 0x514bc8
test al, 0x10
je 0x5149b4
mov esi, 4
jmp 0x514bc8
test al, 0x20
je 0x5149c2
mov esi, 5
jmp 0x514bc8
test al, 0x40
je 0x5149d0
mov esi, 6
jmp 0x514bc8
test al, 1
je case.default.0x51490d
mov esi, 7
jmp 0x514bc8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 4
jne 0x514bc3
test al, 8
je 0x5149ff
mov esi, 2
jmp 0x514bc8
test al, 0x10
je 0x514a0d
mov esi, 3
jmp 0x514bc8
test al, 0x20
je 0x514a1b
mov esi, 4
jmp 0x514bc8
test al, 0x40
je 0x514a29
mov esi, 5
jmp 0x514bc8
test al, 1
je 0x514a37
mov esi, 6
jmp 0x514bc8
test al, 2
je case.default.0x51490d
mov esi, 7
jmp 0x514bc8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 8
jne 0x514bc3
test al, 0x10
je 0x514a66
mov esi, 2
jmp 0x514bc8
test al, 0x20
je 0x514a74
mov esi, 3
jmp 0x514bc8
test al, 0x40
je 0x514a82
mov esi, 4
jmp 0x514bc8
test al, 1
je 0x514a90
mov esi, 5
jmp 0x514bc8
test al, 2
je 0x514a9e
mov esi, 6
jmp 0x514bc8
test al, 4
je case.default.0x51490d
mov esi, 7
jmp 0x514bc8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 0x10
jne 0x514bc3
test al, 0x20
je 0x514acd
mov esi, 2
jmp 0x514bc8
test al, 0x40
je 0x514adb
mov esi, 3
jmp 0x514bc8
test al, 1
je 0x514ae9
mov esi, 4
jmp 0x514bc8
test al, 2
je 0x514af7
mov esi, 5
jmp 0x514bc8
test al, 4
je 0x514b05
mov esi, 6
jmp 0x514bc8
test al, 8
je case.default.0x51490d
mov esi, 7
jmp 0x514bc8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 0x20
jne 0x514bc3
test al, 0x40
je 0x514b34
mov esi, 2
jmp 0x514bc8
test al, 1
je 0x514b42
mov esi, 3
jmp 0x514bc8
test al, 2
je 0x514b4d
mov esi, 4
jmp 0x514bc8
test al, 4
je 0x514b58
mov esi, 5
jmp 0x514bc8
test al, 8
je 0x514b63
mov esi, 6
jmp 0x514bc8
test al, 0x10
je case.default.0x51490d
mov esi, 7
jmp 0x514bc8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 0x40
jne 0x514bc3
test al, 1
je 0x514b88
mov esi, 2
jmp 0x514bc8
test al, 2
je 0x514b93
mov esi, 3
jmp 0x514bc8
test al, 4
je 0x514b9e
mov esi, 4
jmp 0x514bc8
test al, 8
je 0x514ba9
mov esi, 5
jmp 0x514bc8
test al, 0x10
je 0x514bb4
mov esi, 6
jmp 0x514bc8
test al, 0x20
je case.default.0x51490d
mov esi, 7
jmp 0x514bc8
mov esi, 1
lea edi, [ecx + 0x24]
lea edx, [esp + 0xbc]
push edi
push edx
call fcn.005f97f1
add esp, 8
test eax, eax
jne 0x514bed
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x14], eax
jmp 0x514bf5
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.005f97f1
add esp, 8
test eax, eax
jne 0x514c0d
mov ebp, dword [esp + 0x34]
jmp 0x514c10
or ebp, 0xffffffff
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.005f97f1
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.005f97f1
add esp, 0x10
test eax, eax
jne 0x514c54
mov ebx, dword [esp + 0x84]
inc ebx
jmp 0x514c56
xor ebx, ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.005f97f1
add esp, 8
test eax, eax
jne 0x514c77
mov eax, dword [esp + 0x64]
add eax, 0x76c
jmp 0x514c79
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.004a37a0
push 0
push 0
push 0
push esi
lea ecx, [esp + 0x24]
call fcn.00513960
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