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

Disassembly:
mov eax, 0x1224
call fcn.0052fda0
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x1234]
mov dword [ebp], vtable.BXDIGamepad.0
mov eax, dword [esi + 4]
add esi, 4
mov dword [ebp + 0xc], eax
mov ecx, dword [esi + 4]
mov dword [ebp + 0x10], ecx
mov edx, dword [esi + 8]
mov dword [ebp + 0x14], edx
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
lea ebx, [ebp + 4]
mov dword [esp + 0x18], edi
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x44], edi
mov byte [ebp + 0x5c], 1
mov dword [ebx], edi
call fcn.0052bc80
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push ebx
push esi
push eax
call edx
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [ebx]
lea edx, [esp + 0x54]
mov dword [esp + 0x54], 0x2c
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
lea ecx, [esp + 0xd0]
call fcn.0052e240
mov eax, dword [ebx]
push edi
lea edx, [esp + 0xd4]
push edx
mov dword [esp + 0xd8], eax
mov ecx, dword [eax]
push 0x52ea00
push eax
mov eax, dword [ecx + 0x10]
call eax
mov edx, dword [esp + 0x378]
mov eax, dword [esp + 0x4d8]
mov ecx, dword [esp + 0xf5c]
mov esi, dword [esp + 0x374]
mov dword [ebp + 0x34], edx
mov edx, dword [esp + 0x37c]
mov dword [ebp + 0x38], edx
mov edx, dword [esp + 0x380]
mov dword [ebp + 0x3c], edx
mov edx, dword [esp + 0x384]
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x40], edx
mov edx, dword [esp + 0xf70]
add eax, ecx
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x30], ecx
mov dword [ebp + 0x54], edx
add eax, esi
push 0x2c0
mov dword [esp + 0x18], eax
lea eax, [esp + 0xf78]
push edi
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [ebp + 0x44]
mov dword [ebp + 0x48], ecx
add esp, 0xc
xor ecx, ecx
cmp esi, edi
lea eax, [esp + 0xf74]
jbe 0x52e65d
lea edx, [esp + 0xd4]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x44]
mov esi, dword [esp + 0x10]
mov esi, dword [esi]
add dword [esp + 0x10], 0x54
mov dword [eax + 4], edx
add edx, 4
mov dword [eax + 8], esi
mov dword [eax], edi
mov dword [eax + 0xc], edi
add ecx, 1
mov dword [ebp + 0x44], edx
add eax, 0x10
cmp ecx, dword [ebp + 0x28]
jb 0x52e633
mov ecx, dword [ebp + 0x44]
xor edx, edx
cmp dword [esp + 0x4d8], edi
mov dword [ebp + 0x4c], ecx
jbe 0x52e6aa
lea ecx, [esp + 0x388]
mov dword [esp + 0x10], ecx
lea esp, [esp]
mov ecx, dword [ebp + 0x44]
mov esi, dword [esp + 0x10]
mov esi, dword [esi]
add dword [esp + 0x10], 0x54
mov dword [eax + 4], ecx
add ecx, 4
mov dword [eax + 8], esi
mov dword [eax], edi
mov dword [eax + 0xc], edi
add edx, 1
mov dword [ebp + 0x44], ecx
add eax, 0x10
cmp edx, dword [ebp + 0x2c]
jb 0x52e680
mov edx, dword [ebp + 0x44]
mov dword [ebp + 0x50], edx
xor edx, edx
cmp dword [esp + 0xf5c], edi
jbe 0x52e6e8
lea esi, [esp + 0x4dc]
mov edi, dword [esi]
mov ecx, dword [ebp + 0x44]
mov dword [eax + 8], edi
xor edi, edi
mov dword [eax + 4], ecx
add ecx, 1
mov dword [eax], edi
mov dword [eax + 0xc], edi
add edx, 1
mov dword [ebp + 0x44], ecx
add eax, 0x10
add esi, 0x54
cmp edx, dword [ebp + 0x30]
jb 0x52e6c2
mov eax, dword [ebp + 0x44]
mov ecx, eax
and ecx, 3
je 0x52e6fa
sub eax, ecx
add eax, 4
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x44]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xf74]
mov dword [esp + 0x48], eax
mov eax, dword [ebx]
mov dword [esp + 0x50], edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], 0x18
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x44], 1
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
cmp dword [ebp + 0x54], edi
mov dword [ebp + 8], edi
jbe 0x52e842
mov ecx, dword [esp + 0xf70]
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
jbe 0x52e773
lea esi, [esp + 0xf60]
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor eax, eax
push 0x34
lea ecx, [esp + 0x88]
push edi
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], edi
call sub.MSVCR80.dll_memset
or eax, 0xffffffff
add esp, 0xc
mov dword [esp + 0x88], eax
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x54]
push edi
mov dword [esp + 0xa0], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0xb4], ecx
lea eax, [esp + 0x30]
lea esi, [ebp + 8]
push esi
mov dword [esp + 0xac], eax
mov eax, dword [ebx]
lea ecx, [esp + 0x88]
lea edx, [esp + 0x24]
push ecx
mov dword [esp + 0xac], edx
mov dword [esp + 0x8c], 0x38
mov dword [esp + 0x90], 0x12
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], 0x2710
mov dword [esp + 0xa4], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], 4
mov dword [esp + 0xc0], edi
mov edx, dword [eax]
mov edx, dword [edx + 0x48]
push 0x5595cc
push eax
call edx
cmp eax, edi
jge 0x52e842
mov dword [esi], edi
mov eax, dword [ebx]
mov edx, dword [0x690dbc]
mov ecx, dword [eax]
push 5
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
mov ebx, dword [ebx]
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x1c]
push ebx
call edx
mov ebx, dword [esp + 0x1238]
mov dword [ebp + 0x1c], edi
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.0052f160
mov esi, eax
cmp dword [esi + 4], edi
mov dword [esp + 0x10], edi
jbe 0x52e8cf
mov ecx, dword [esi]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + edx*4]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push eax
call fcn.0052dd30
add esp, 8
test eax, eax
je 0x52e8bf
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x1c], eax
add dword [eax + 0x60], 1
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esi + 4]
mov dword [esp + 0x10], eax
jb 0x52e895
cmp dword [ebp + 0x1c], edi
jne 0x52e9a8
push 0x70
call fcn.00525dd0
add esp, 4
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x52e939
lea ecx, [esp + 0xd0]
push ecx
add ebx, 0x230
push ebx
lea ecx, [esp + 0x88]
mov dword [esp + 0x20], 1
call fcn.00527310
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x2c]
call fcn.0052f170
jmp 0x52e93b
xor eax, eax
test byte [esp + 0x18], 1
mov dword [ebp + 0x1c], eax
je 0x52e951
lea ecx, [esp + 0x80]
call fcn.00527430
mov edx, dword [ebp + 0x1c]
mov dword [edx + 0x60], 1
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea eax, [edx + 1]
cmp ecx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jae 0x52e99b
mov ebx, ecx
shr ebx, 1
add ebx, ecx
cmp ebx, eax
cmovb ebx, eax
mov eax, dword [esi]
lea ecx, [ebx*4]
push ecx
push eax
call sub.MSVCR80.dll_realloc
mov edx, dword [esp + 0x20]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
add esp, 8
mov dword [esi + 8], ebx
mov ecx, dword [esi]
lea ecx, [ecx + edx*4]
mov edx, dword [ebp + 0x1c]
mov dword [ecx], edx
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x60]
mov edx, eax
sub ecx, 1
mov dword [ebp + 0x58], ecx
mov eax, dword [edx + 0x68]
mov dword [ebp + 0x24], eax
add eax, eax
add eax, eax
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, dword [ebp + 0x24]
add ecx, ecx
add ecx, ecx
push ecx
push edi
push eax
mov dword [ebp + 0x20], eax
call sub.MSVCR80.dll_memset
add esp, 0x10
lea ecx, [esp + 0xd0]
call fcn.0052ddd0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1224
ret 4