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

Disassembly:
sub esp, 0x190
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x32c40
push 0xeed760
call fcn.0040f8f0
mov eax, dword [esp + 0x1b0]
mov edx, dword [0xbca2d8]
mov ebx, dword [esp + 0x1ac]
add esp, 0xc
lea ecx, [eax + eax*8]
lea eax, [eax + ecx*2]
lea eax, [eax + eax*2]
lea ecx, [edx + eax*4]
mov eax, dword [esp + 0x1ac]
add ecx, ebx
lea edi, [eax + eax*8]
mov dword [0xeae004], ecx
lea eax, [eax + edi*2]
mov edi, dword [esp + 0x1a8]
lea eax, [eax + eax*2]
lea eax, [edx + eax*4]
mov dl, byte [ecx + 0xed4140]
add eax, edi
cmp dl, 0xff
jne 0x51dee9
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x190
ret
push ebp
mov ebp, 1
mov dword [ecx*4 + 0xeed760], ebp
mov ecx, dword [0xeae004]
mov dword [0xf203a0], ecx
xor ecx, ecx
mov dword [0xeae00c], ecx
mov dword [0xeae008], ebp
jmp 0x51df16
mov esi, dword [esp + 0x1c]
inc esi
cmp esi, 0xc350
mov dword [esp + 0x1c], esi
jg 0x51e708
mov edx, dword [ecx*4 + 0xf203a0]
mov dword [esp + 0x14], edx
lea ecx, [edx*4 + 0xeed760]
lea edi, [edx - 0xe4]
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx]
mov esi, dword [edi*4 + 0xeed760]
inc ecx
test esi, esi
mov dword [esp + 0x10], ecx
jne 0x51e13a
cmp edi, dword [0xeae004]
je 0x51e10f
cmp edi, eax
je 0x51e10f
cmp byte [edx + 0xed405c], 0xff
je 0x51e13a
mov ecx, dword [edi*4 + 0xaf598c]
test ecx, 0x10000
jne 0x51e13a
test cl, 0x40
jne 0x51e13a
mov dword [esp + 0xe0], 0xffffff1c
mov dword [esp + 0xe4], 0xffffff1d
mov dword [esp + 0xe8], 1
mov dword [esp + 0xec], 0xe5
mov dword [esp + 0xf0], 0xe4
mov dword [esp + 0xf4], 0xe3
mov dword [esp + 0xf8], 0xffffffff
mov dword [esp + 0xfc], 0xffffff1b
mov dword [esp + 0x100], 0xfffffe38
mov dword [esp + 0x104], 0xfffffe39
mov dword [esp + 0x108], 0xfffffe3a
mov dword [esp + 0x10c], 0xffffff1e
mov dword [esp + 0x110], 2
mov dword [esp + 0x114], 0xe6
mov dword [esp + 0x118], 0x1ca
mov dword [esp + 0x11c], 0x1c9
mov dword [esp + 0x120], 0x1c8
mov dword [esp + 0x124], 0x1c7
mov dword [esp + 0x128], 0x1c6
mov dword [esp + 0x12c], 0xe2
mov dword [esp + 0x130], 0xfffffffe
mov dword [esp + 0x134], 0xffffff1a
mov dword [esp + 0x138], 0xfffffe36
mov dword [esp + 0x13c], 0xfffffe37
xor esi, esi
lea ecx, [esp + 0xe0]
mov edx, dword [ecx]
mov ebx, dword [esp + 0x14]
lea edx, [ebx + edx - 0xe4]
mov ebx, dword [edx*4 + 0xaf598c]
test bl, 0x40
jne 0x51e13a
cmp edx, dword [0xeae004]
je 0x51e0e6
cmp edx, eax
je 0x51e0e6
cmp byte [edx + 0xed4140], 0xff
je 0x51e13a
test ebx, 0x10000
jne 0x51e13a
inc esi
add ecx, 4
cmp esi, 8
jl 0x51e0a7
mov ecx, dword [esp + 0x10]
mov dword [edi*4 + 0xeed760], ecx
mov ebp, dword [0xeae008]
mov dword [ebp*4 + 0xf203a0], edi
inc ebp
cmp ebp, 0xcb0f
mov dword [0xeae008], ebp
jle 0x51e13a
jmp 0x51e132
mov dword [edi*4 + 0xeed760], ecx
mov ebp, dword [0xeae008]
mov dword [ebp*4 + 0xf203a0], edi
inc ebp
cmp ebp, 0xcb0f
mov dword [0xeae008], ebp
jle 0x51e13a
xor ebp, ebp
mov dword [0xeae008], ebp
mov ecx, dword [esp + 0x14]
lea edi, [ecx + 1]
mov edx, dword [edi*4 + 0xeed760]
test edx, edx
jne 0x51e2e7
cmp edi, dword [0xeae004]
je 0x51e2b8
cmp edi, eax
je 0x51e2b8
cmp byte [ecx + 0xed4141], 0xff
je 0x51e2e7
mov ecx, dword [ecx*4 + 0xaf5990]
test ecx, 0x10000
jne 0x51e2e7
test cl, 0x40
jne 0x51e2e7
mov dword [esp + 0x20], 0xffffff1c
mov dword [esp + 0x24], 0xffffff1d
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0xe5
mov dword [esp + 0x30], 0xe4
mov dword [esp + 0x34], 0xe3
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], 0xffffff1b
mov dword [esp + 0x40], 0xfffffe38
mov dword [esp + 0x44], 0xfffffe39
mov dword [esp + 0x48], 0xfffffe3a
mov dword [esp + 0x4c], 0xffffff1e
mov dword [esp + 0x50], 2
mov dword [esp + 0x54], 0xe6
mov dword [esp + 0x58], 0x1ca
mov dword [esp + 0x5c], 0x1c9
mov dword [esp + 0x60], 0x1c8
mov dword [esp + 0x64], 0x1c7
mov dword [esp + 0x68], 0x1c6
mov dword [esp + 0x6c], 0xe2
mov dword [esp + 0x70], 0xfffffffe
mov dword [esp + 0x74], 0xffffff1a
mov dword [esp + 0x78], 0xfffffe36
mov dword [esp + 0x7c], 0xfffffe37
xor esi, esi
lea ecx, [esp + 0x20]
mov edx, dword [ecx]
mov ebx, dword [esp + 0x14]
lea edx, [edx + ebx + 1]
mov ebx, dword [edx*4 + 0xaf598c]
test bl, 0x40
jne 0x51e2e7
cmp edx, dword [0xeae004]
je 0x51e28f
cmp edx, eax
je 0x51e28f
cmp byte [edx + 0xed4140], 0xff
je 0x51e2e7
test ebx, 0x10000
jne 0x51e2e7
inc esi
add ecx, 4
cmp esi, 8
jl 0x51e253
mov ecx, dword [esp + 0x10]
mov dword [edi*4 + 0xeed760], ecx
mov ebp, dword [0xeae008]
mov dword [ebp*4 + 0xf203a0], edi
inc ebp
cmp ebp, 0xcb0f
mov dword [0xeae008], ebp
jle 0x51e2e7
jmp 0x51e2df
mov edx, dword [esp + 0x10]
mov dword [edi*4 + 0xeed760], edx
mov ebp, dword [0xeae008]
mov dword [ebp*4 + 0xf203a0], edi
inc ebp
cmp ebp, 0xcb0f
mov dword [0xeae008], ebp
jle 0x51e2e7
xor ebp, ebp
mov dword [0xeae008], ebp
mov ecx, dword [esp + 0x14]
lea edi, [ecx + 0xe4]
mov edx, dword [edi*4 + 0xeed760]
test edx, edx
jne 0x51e4e5
cmp edi, dword [0xeae004]
je 0x51e4b6
cmp edi, eax
je 0x51e4b6
cmp byte [ecx + 0xed4224], 0xff
je 0x51e4e5
mov ecx, dword [ecx*4 + 0xaf5d1c]
test ecx, 0x10000
jne 0x51e4e5
test cl, 0x40
jne 0x51e4e5
mov dword [esp + 0x80], 0xffffff1c
mov dword [esp + 0x84], 0xffffff1d
mov dword [esp + 0x88], 1
mov dword [esp + 0x8c], 0xe5
mov dword [esp + 0x90], 0xe4
mov dword [esp + 0x94], 0xe3
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x9c], 0xffffff1b
mov dword [esp + 0xa0], 0xfffffe38
mov dword [esp + 0xa4], 0xfffffe39
mov dword [esp + 0xa8], 0xfffffe3a
mov dword [esp + 0xac], 0xffffff1e
mov dword [esp + 0xb0], 2
mov dword [esp + 0xb4], 0xe6
mov dword [esp + 0xb8], 0x1ca
mov dword [esp + 0xbc], 0x1c9
mov dword [esp + 0xc0], 0x1c8
mov dword [esp + 0xc4], 0x1c7
mov dword [esp + 0xc8], 0x1c6
mov dword [esp + 0xcc], 0xe2
mov dword [esp + 0xd0], 0xfffffffe
mov dword [esp + 0xd4], 0xffffff1a
mov dword [esp + 0xd8], 0xfffffe36
mov dword [esp + 0xdc], 0xfffffe37
xor esi, esi
lea ecx, [esp + 0x80]
mov edx, dword [ecx]
mov ebx, dword [esp + 0x14]
lea edx, [edx + ebx + 0xe4]
mov ebx, dword [edx*4 + 0xaf598c]
test bl, 0x40
jne 0x51e4e5
cmp edx, dword [0xeae004]
je 0x51e48d
cmp edx, eax
je 0x51e48d
cmp byte [edx + 0xed4140], 0xff
je 0x51e4e5
test ebx, 0x10000
jne 0x51e4e5
inc esi
add ecx, 4
cmp esi, 8
jl 0x51e44e
mov ecx, dword [esp + 0x10]
mov dword [edi*4 + 0xeed760], ecx
mov ebp, dword [0xeae008]
mov dword [ebp*4 + 0xf203a0], edi
inc ebp
cmp ebp, 0xcb0f
mov dword [0xeae008], ebp
jle 0x51e4e5
jmp 0x51e4dd
mov edx, dword [esp + 0x10]
mov dword [edi*4 + 0xeed760], edx
mov ebp, dword [0xeae008]
mov dword [ebp*4 + 0xf203a0], edi
inc ebp
cmp ebp, 0xcb0f
mov dword [0xeae008], ebp
jle 0x51e4e5
xor ebp, ebp
mov dword [0xeae008], ebp
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 4]
test ecx, ecx
jne 0x51e6db
mov ecx, dword [esp + 0x14]
mov esi, dword [0xeae004]
lea edi, [ecx - 1]
cmp edi, esi
je 0x51e6b0
cmp edi, eax
je 0x51e6b0
cmp byte [ecx + 0xed413f], 0xff
je 0x51e6db
mov ecx, dword [ecx*4 + 0xaf5988]
test ecx, 0x10000
jne 0x51e6db
test cl, 0x40
jne 0x51e6db
mov dword [esp + 0x140], 0xffffff1c
mov dword [esp + 0x144], 0xffffff1d
mov dword [esp + 0x148], 1
mov dword [esp + 0x14c], 0xe5
mov dword [esp + 0x150], 0xe4
mov dword [esp + 0x154], 0xe3
mov dword [esp + 0x158], 0xffffffff
mov dword [esp + 0x15c], 0xffffff1b
mov dword [esp + 0x160], 0xfffffe38
mov dword [esp + 0x164], 0xfffffe39
mov dword [esp + 0x168], 0xfffffe3a
mov dword [esp + 0x16c], 0xffffff1e
mov dword [esp + 0x170], 2
mov dword [esp + 0x174], 0xe6
mov dword [esp + 0x178], 0x1ca
mov dword [esp + 0x17c], 0x1c9
mov dword [esp + 0x180], 0x1c8
mov dword [esp + 0x184], 0x1c7
mov dword [esp + 0x188], 0x1c6
mov dword [esp + 0x18c], 0xe2
mov dword [esp + 0x190], 0xfffffffe
mov dword [esp + 0x194], 0xffffff1a
mov dword [esp + 0x198], 0xfffffe36
mov dword [esp + 0x19c], 0xfffffe37
xor esi, esi
lea ecx, [esp + 0x140]
mov edx, dword [ecx]
mov ebx, dword [esp + 0x14]
lea edx, [edx + ebx - 1]
mov ebx, dword [edx*4 + 0xaf598c]
test bl, 0x40
jne 0x51e6db
cmp edx, dword [0xeae004]
je 0x51e687
cmp edx, eax
je 0x51e687
cmp byte [edx + 0xed4140], 0xff
je 0x51e6db
test ebx, 0x10000
jne 0x51e6db
inc esi
add ecx, 4
cmp esi, 8
jl 0x51e64b
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [edx - 4], ecx
mov ebp, dword [0xeae008]
mov dword [ebp*4 + 0xf203a0], edi
inc ebp
cmp ebp, 0xcb0f
mov dword [0xeae008], ebp
jle 0x51e6db
jmp 0x51e6d3
mov ecx, dword [esp + 0x10]
mov dword [edx - 4], ecx
mov ebp, dword [0xeae008]
mov dword [ebp*4 + 0xf203a0], edi
inc ebp
cmp ebp, 0xcb0f
mov dword [0xeae008], ebp
jle 0x51e6db
xor ebp, ebp
mov dword [0xeae008], ebp
mov ecx, dword [0xeae00c]
inc ecx
cmp ecx, 0xcb0f
mov dword [0xeae00c], ecx
jle 0x51e6fa
mov dword [0xeae00c], 0
mov ecx, dword [0xeae00c]
cmp ecx, ebp
jne 0x51df12
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x190
ret