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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x54]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x64]
push edi
mov edx, dword [esi]
mov dword [esi + 0xd4], ecx
mov ecx, esi
mov dword [esi + 0x128], eax
call dword [edx + 4]
mov eax, dword [0x586bac]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx*4 + 0x5803a8]
mov ecx, esi
push edx
call fcn.004b5da0
push 0
mov ecx, esi
call fcn.004b5e40
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi]
push ebp
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov edx, dword [esi]
push 0x3e8
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0x78]
lea edi, [eax + 0x13c]
add eax, 0x13
push edi
lea edi, [ecx + 0xf5]
push edi
add ecx, 0xd
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x19c]
test eax, eax
jne 0x51e027
push 0x6c
call fcn.004d8630
add esp, 4
test eax, eax
je 0x51e01f
mov ecx, eax
call fcn.004b5b50
jmp 0x51e021
xor eax, eax
mov dword [esi + 0x19c], eax
mov ecx, dword [esi + 0x19c]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [0x586bac]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx*4 + 0x5803a8]
mov ecx, dword [esi + 0x19c]
push edx
call fcn.004b5da0
mov ecx, dword [esi + 0x19c]
push 2
call fcn.004b5e40
mov ecx, dword [esi + 0x19c]
push 0xfa0
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x19c]
push eax
mov eax, dword [esi + 0x10]
mov edx, dword [ecx]
push eax
call dword [edx + 0x28]
mov ecx, dword [esi + 0x19c]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov eax, dword [esi + 0x198]
test eax, eax
jne 0x51e0b2
push 0x30
call fcn.004d8630
add esp, 4
test eax, eax
je 0x51e0aa
push esi
mov ecx, eax
call fcn.00524140
jmp 0x51e0ac
xor eax, eax
mov dword [esi + 0x198], eax
mov edi, dword [esi + 0x198]
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ebx, 5
mov dword [edi + 0x10], ebx
add edi, 0x1c
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x18]
add edi, 4
dec ebx
jne 0x51e0d3
mov eax, dword [esi + 0x1a0]
test eax, eax
jne 0x51e109
push 0x6c
call fcn.004d8630
add esp, 4
test eax, eax
je 0x51e101
mov ecx, eax
call fcn.004b5b50
jmp 0x51e103
xor eax, eax
mov dword [esi + 0x1a0], eax
mov ecx, dword [esi + 0x1a0]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [0x586bac]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx*4 + 0x5803a8]
mov ecx, dword [esi + 0x1a0]
push edx
call fcn.004b5da0
mov ecx, dword [esi + 0x1a0]
push 4
call fcn.004b5e40
mov ecx, dword [esi + 0x1a0]
push 0x1770
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1a0]
push eax
mov eax, dword [esi + 0x10]
mov edx, dword [ecx]
push eax
call dword [edx + 0x28]
mov ecx, dword [esi + 0x1a0]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov eax, dword [esp + 0x5c]
xor ebx, ebx
add eax, 0x1c
lea edi, [esi + 0x9c]
add ebp, 0x13
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], ebp
push 0x90
call fcn.004d8630
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x51e1e0
mov ecx, ebp
call fcn.004b5700
lea ecx, [ebp + 0x50]
call fcn.004b5700
lea edi, [ebp + 0x2c]
mov ecx, 8
xor eax, eax
mov dword [ebp], vtable.PRRow.0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x5c]
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], eax
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x84], eax
mov ecx, ebp
jmp 0x51e1e2
xor ecx, ecx
mov ebp, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
push esi
push ebx
push ebp
push edx
mov dword [edi], ecx
call fcn.00523670
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x18]
inc ebx
add edi, 4
add ebp, 0x1b
cmp ebx, 0xc
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], ebp
jl 0x51e188
mov eax, dword [esi + 0x194]
test eax, eax
jne 0x51e240
push 0x1dc
call fcn.004d8630
add esp, 4
test eax, eax
je 0x51e238
mov ecx, eax
call fcn.004f1ab0
jmp 0x51e23a
xor eax, eax
mov dword [esi + 0x194], eax
mov ecx, dword [esi + 0x194]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [0x586bac]
mov eax, dword [eax + 0x38]
shl eax, 2
mov ecx, dword [eax + 0x5803b8]
mov edx, dword [eax + 0x5803b0]
push ecx
mov ecx, dword [esi + 0x194]
push edx
call fcn.004f2730
mov ecx, dword [esi + 0x194]
push 0x3f2
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x194]
add eax, 0x14c
mov edx, dword [ecx]
push eax
mov eax, dword [esi + 0x10]
add eax, 0x69
push eax
call dword [edx + 0x28]
mov edx, dword [esi + 0x78]
push esi
mov eax, dword [esi + 0x7c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esi + 0x80]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x84]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x194]
call fcn.004f1b80
mov ecx, dword [esi + 0x194]
mov edx, dword [ecx]
call dword [edx + 0x18]
lea edi, [esi + 0x98]
push 0
push 0
push edi
mov ecx, esi
call fcn.005202b0
mov edx, dword [esi + 0x14]
mov ecx, dword [edi]
add edx, 0x16e
mov eax, dword [ecx]
push edx
mov edx, dword [esi + 0x10]
add edx, 0x81
push edx
call dword [eax + 0x28]
mov eax, dword [edi]
mov ebp, 1
push pe_nt_image_headers32
mov dword [eax + 0x8c], ebp
mov ecx, dword [edi]
call fcn.004b6040
mov ecx, dword [edi]
push 0x60
mov dword [ecx + 0x7c], 0xa
mov edx, dword [edi]
mov dword [edx + 0x78], ebp
mov ecx, dword [edi]
call fcn.004b5e40
mov edi, dword [edi]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x14]
mov eax, dword [esi + 0x94]
test eax, eax
jne 0x51e362
push 0x78
call fcn.004d8630
add esp, 4
test eax, eax
je 0x51e35a
mov ecx, eax
call fcn.0044a060
jmp 0x51e35c
xor eax, eax
mov dword [esi + 0x94], eax
mov ecx, dword [esi + 0x94]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esi + 0x94]
push 0xbb7
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x94]
mov ebx, dword [esi + 0x10]
add eax, 0x16e
mov edx, dword [ecx]
push eax
mov eax, dword [esi + 0x128]
mov eax, dword [eax*4 + str._M]
add eax, ebx
push eax
call dword [edx + 0x28]
mov ecx, dword [esi + 0x94]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esi + 0x1a4]
test eax, eax
jne 0x51e3d8
push 0x78
call fcn.004d8630
add esp, 4
test eax, eax
je 0x51e3d0
mov ecx, eax
call fcn.0044a060
jmp 0x51e3d2
xor eax, eax
mov dword [esi + 0x1a4], eax
mov ecx, dword [esi + 0x1a4]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0x1a4]
push 0x9cb
call fcn.004b5da0
mov ecx, dword [esi + 0x1a4]
push 0xf9f
mov edx, dword [ecx]
call dword [edx + 0x10]
mov eax, dword [esi + 0x1a4]
mov dword [eax + 0x6c], 3
mov ecx, dword [esi + 0x1a4]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov edx, dword [esi + 0x114]
mov eax, dword [str.None]
mov cl, byte [0x57a204]
add edx, 0x107
push str.PLACER_RACER
push edx
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esi + 0x114]
lea edx, [esp + 0x18]
push 0x20
push edx
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
push str.CheatCode
call dword [eax + 4]
mov ecx, dword [esi + 0x114]
push 0x41
push str.RandomI
call fcn.00485b40
mov dword [0x5b7958], eax
mov ecx, dword [esi + 0x114]
push 0x2d
push str.RandomH
call fcn.00485b40
mov dword [0x5b795c], eax
mov dword [0x5803c0], ebp
mov edi, str.Inimicus
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x51e4c7
test cl, cl
je 0x51e4c3
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x51e4c7
add eax, 2
add edi, 2
test cl, cl
jne 0x51e49f
xor eax, eax
jmp 0x51e4cc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x51e4db
mov eax, dword [0x5a2400]
mov dword [eax + 0x924], ebp
mov ecx, dword [esi + 0x114]
push 2
push str.Credits
call fcn.00485b40
mov ecx, dword [0x5a2400]
push 0x20
mov dword [ecx + 0x928], eax
mov esi, dword [esi + 0x114]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x14]
mov edx, dword [esi]
push eax
push ecx
push str.NextBoard
mov ecx, esi
call dword [edx + 4]
lea esi, [esp + 0x10]
lea eax, [esp + 0x38]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x51e547
test cl, cl
je 0x51e543
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x51e547
add eax, 2
add esi, 2
test cl, cl
jne 0x51e51f
xor eax, eax
jmp 0x51e54c
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
pop edi
test eax, eax
sete cl
pop esi
pop ebp
mov dword [0x5803c4], ecx
pop ebx
add esp, 0x48
ret 0x10