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

Disassembly:
push 0xffffffffffffffff
push 0x73d7c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0xb8]
push esi
lea ecx, [ebx + 0xb8]
push edi
mov dword [esp + 0x28], ebx
call dword [eax + 0x48]
mov esi, eax
and esi, reloc.WS2_32.dll_closesocket
jns 0x4aefd0
dec esi
or esi, 0xfffffffc
inc esi
cdq
neg esi
sbb esi, esi
and edx, 3
add eax, edx
mov edx, dword [ebx]
sar eax, 2
neg esi
add esi, eax
push 9
mov ecx, ebx
mov dword [esp + 0x30], esi
call dword [edx + 0x8c]
mov edi, eax
xor ebp, ebp
cmp edi, ebp
je 0x4af339
cmp dword [edi + 0x38], ebp
je 0x4af2b5
mov ecx, dword [edi + 0x38]
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x4af039
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
call dword [edx + 0x34]
mov eax, dword [eax]
cmp eax, ebp
je 0x4af033
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
push 1
call dword [edx]
cmp dword [esp + 0x10], ebp
jne 0x4af016
mov eax, dword [ebx + 0xb4]
sub eax, dword [ebx + 0xac]
mov ecx, esi
shl ecx, 5
add ecx, esi
mov esi, dword [ebx + 0xb0]
sub esi, dword [ebx + 0xa8]
sub eax, ecx
add eax, 1
cdq
sub eax, edx
mov edx, dword [ebx + 0xa8]
sar eax, 1
add eax, dword [ebx + 0xac]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
lea eax, [eax + ecx - 1]
mov dword [esp + 0x48], eax
sub esp, 0x10
mov eax, esp
add esi, 1
lea esi, [edx + esi - 1]
mov dword [esp + 0x54], esi
mov dword [eax], edx
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x54]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0xc], ecx
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x30], esp
call dword [edx + 0x34]
mov eax, dword [ebx + 0xb8]
lea ecx, [ebx + 0xb8]
xor esi, esi
mov dword [esp + 0x18], esi
call dword [eax + 0x2c]
cmp eax, ebp
mov dword [esp + 0x24], eax
je 0x4af330
mov al, 0x14
mov byte [esp + 0x16], al
mov byte [esp + 0x15], 0x78
mov byte [esp + 0x14], al
mov byte [esp + 0x17], 0xff
mov dword [esp + 0x1c], ebp
lea esp, [esp]
mov edx, dword [ebx + 0xb8]
lea ecx, [ebx + 0xb8]
lea eax, [esp + 0x24]
push eax
call dword [edx + 0x34]
mov ebp, dword [eax]
mov ecx, ebp
call fcn.005f65c0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, esi
shl eax, 5
add eax, esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
add ecx, 0x7f
add eax, 0x20
push 0x140
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x30], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x54], esi
je 0x4af158
push 1
mov ecx, eax
call fcn.004ae8d0
mov esi, eax
mov ecx, dword [edi + 0x50]
mov eax, dword [edi + 0x44]
push 0xffffffffffffffff
push 0x78f490
mov dword [esi + 0xe8], eax
mov dword [esi + 0x44], eax
mov edx, dword [edi + 0x48]
mov eax, dword [esi]
push 0
mov dword [esi + 0xe0], edx
mov edx, dword [esp + 0x2c]
push edx
push ecx
push 0x10010
push 0xe
lea ecx, [esp + 0x58]
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x78], 0xffffffff
call dword [eax + 0x128]
mov eax, dword [edi + 0x48]
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push 0x78f490
push 0
push 0
mov dword [esi + 0xe8], eax
mov dword [esi + 0x44], eax
mov edx, dword [edi + 0x44]
mov eax, dword [esi]
push ecx
push 1
mov ecx, esi
mov dword [esi + 0xe0], edx
call dword [eax + 0x134]
sub esp, 8
mov eax, esp
mov dword [eax], 0x1c
mov dword [eax + 4], 0xffffffff
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x38], esp
call dword [edx + 0x154]
movzx eax, word [ebp + 0x20]
push 0
mov dword [esi + 0x11c], eax
mov edx, dword [ebx]
push str.Images_Screens_PlayWnd_Start_Europe_frame.rle
mov ecx, ebx
call dword [edx + 0x10]
mov ecx, dword [0x914298]
mov ebx, dword [esi]
lea edx, [esp + 0x34]
push edx
movzx edx, byte [ebp + 0x127]
push eax
push 0
push 0x85d304
push 0x85d9c0
add ecx, 0xe5a4
push 0
mov dword [esp + 0x4c], 4
mov dword [esp + 0x50], 3
mov eax, dword [ecx]
push edx
call dword [eax + 0x14]
mov eax, dword [eax + 0x38]
push eax
call fcn.0071f44c
add esp, 0x14
push eax
mov ecx, esi
call dword [ebx + 0x16c]
mov al, byte [ebp + 0x125]
mov cl, byte [ebp + 0x124]
mov edx, dword [esi]
push 0xff
push 0
push eax
push ecx
mov ecx, esi
call dword [edx + 0x170]
push 0x810
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x54], 1
je 0x4af2be
mov dx, word [ebp + 0x20]
push 0
push 0
push 0
mov ecx, eax
push edx
push 0
push str.euromapwnd_kingdom
push 9
push esi
call fcn.006cca40
jmp 0x4af2c0
mov dword [esp + 0x10], ebp
jmp 0x4af039
xor eax, eax
mov dword [esi + 0x54], eax
push 1
sub esp, 8
mov eax, esp
mov dword [eax], 0x14
mov dword [eax + 4], 0x17c
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x3c], esp
call dword [eax + 0xc]
mov ecx, dword [esi + 0x54]
add ecx, 0x30c
push str.DEFS_Screens_PlayWnd_euro_rollmsg.in2
push ecx
call fcn.0071e658
mov esi, dword [esp + 0x20]
add esi, 1
add esp, 8
cmp esi, dword [esp + 0x2c]
mov dword [esp + 0x18], esi
jl 0x4af321
xor esi, esi
add dword [esp + 0x1c], 0x8c
mov dword [esp + 0x18], esi
cmp dword [esp + 0x24], 0
mov ebx, dword [esp + 0x28]
jne 0x4af0f0
push 0
mov ecx, ebx
call fcn.004ae0b0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret 4