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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x73f1aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6f8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, 0x45524554
push esi
push edi
jne 0x4d265e
cmp dword [ecx + 4], 0x1004
jne 0x4d34f3
push 0
lea eax, [ebx - 8]
neg eax
push 1
sbb eax, eax
push 0x3e8
and eax, ebx
lea ecx, [ebx - 8]
push 0x42544e43
jmp 0x4d34ea
cmp eax, 0x4c425343
jne 0x4d26c2
mov eax, dword [ecx + 4]
push 0
push 0x85bf90
push 0x85bf74
push 0
push eax
call fcn.0071f44c
add esp, 0x14
test eax, eax
je 0x4d34f3
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4d34f3
push 0
push 0x85f65c
push 0x85b460
push 0
push eax
call fcn.0071f44c
add esp, 0x14
test eax, eax
je 0x4d34f3
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x128]
jmp 0x4d34f3
cmp eax, 0x42544e43
jne 0x4d34ab
mov eax, dword [ecx + 4]
cmp eax, 0x138e
ja 0x4d2e27
je 0x4d2de5
cmp eax, 0x138a
ja 0x4d2d06
je 0x4d2ccf
cmp eax, 0x3ea
ja 0x4d2c97
je 0x4d2942
sub eax, 0x3e8
je 0x4d2732
sub eax, 1
je case.0x4d2e46.5013
push ecx
mov ecx, ebx
call fcn.0042f240
mov ecx, dword [esp + 0x704]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx - 8]
push 0
push 0x85b474
push 0x85b460
lea esi, [ebx - 8]
push 0
push 0x1004
mov ecx, esi
call dword [eax + 0x8c]
push eax
call fcn.0071f44c
mov edx, dword [eax]
add esp, 0x14
push 0x100
lea ecx, [esp + 0x204]
push ecx
mov ecx, eax
call dword [edx + 0x12c]
cmp word [esp + 0x200], 0
jne 0x4d27a7
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x4d34f3
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
push eax
call dword [edx + 0xc]
mov dword [ebx + 0x98], 0
jmp 0x4d34f3
mov ecx, dword [0x8fdf5c]
mov eax, dword [ecx]
push 1
call dword [eax + 0x24]
mov ecx, dword [0x8fdf5c]
mov edx, dword [ecx]
mov edi, eax
push edi
lea eax, [esp + 0x204]
push eax
mov dword [esp + 0x14], edi
call dword [edx + 0x38]
test eax, eax
je 0x4d2808
mov edx, dword [esi]
push 1
push 0
push str.mpwnd_invalidip
mov ecx, esi
call dword [edx + 0x130]
mov eax, dword [0x914218]
cmp dword [eax + 0x278], 0
je 0x4d292b
call fcn.0040d640
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x54]
jmp 0x4d292b
mov eax, dword [0x914218]
cmp dword [eax + 0x278], 0
je 0x4d2827
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x138]
mov dword [ebx + 0x9c], eax
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x4d2847
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
push eax
call dword [edx + 0xc]
mov dword [ebx + 0x98], 0
lea eax, [esp + 0x200]
push eax
call fcn.0071e696
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
add esp, 4
push 0
lea eax, [eax + eax + 2]
push 0
push eax
call dword [edx + 8]
lea ecx, [esp + 0x200]
push ecx
push eax
mov dword [ebx + 0x98], eax
call fcn.0071e658
mov edx, dword [esi]
add esp, 8
push 0xd05
mov ecx, esi
call dword [edx + 0x8c]
mov edi, eax
test edi, edi
je 0x4d28ac
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x134]
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x24]
jmp 0x4d28e5
mov eax, dword [esi]
push 0x15b3
mov ecx, esi
call dword [eax + 0x8c]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xb4]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [0x914218]
mov edx, dword [ecx + 0x29c]
mov eax, dword [eax + 4]
mov dword [edx + 0xc8], eax
lea edi, [ebx - 8]
neg edi
sbb edi, edi
and edi, ebx
call fcn.0040d640
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
push 0xd81
push edi
push esi
mov ecx, eax
call dword [edx + 0x14]
mov ecx, dword [0x905890]
cmp dword [ecx + 0x14], 1
jne 0x4d291b
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x905890]
cmp dword [ecx + 0x14], 0
jne 0x4d292b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x128]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4d34f3
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x4d34f3
lea esi, [ebx - 8]
push 0
mov ecx, esi
mov dword [esp + 0x10], esi
call fcn.004d0690
mov ecx, dword [0x914218]
mov edx, dword [ecx + 8]
push edx
push str.DEFS_Screens_multiplayer_creategame_wnd.in2
call fcn.0042faf0
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edi]
add esp, 8
mov ecx, esi
mov dword [esp + 0x14], eax
call dword [edx + 0x13c]
mov ecx, edi
push eax
mov eax, dword [esp + 0x18]
call dword [eax + 0x12c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10c]
mov esi, eax
cmp esi, 0x3ea
jne 0x4d29fc
lea ecx, [esp + 0x500]
xor eax, eax
push ecx
mov ecx, edi
mov word [esp + 0x404], ax
mov word [esp + 0x504], ax
call fcn.004c5a00
lea edx, [esp + 0x400]
push edx
mov ecx, edi
call fcn.004c55f0
lea eax, [esp + 0x1c0]
push eax
mov ecx, edi
call fcn.004c5650
lea ecx, [esp + 0x78]
push ecx
mov ecx, edi
call fcn.004c5680
mov dl, byte [edi + 0xac]
mov ecx, edi
mov byte [esp + 0x13], dl
call fcn.004c5700
mov byte [esp + 0x12], al
mov eax, dword [edi + 8]
add edi, 8
push 1
mov ecx, edi
call dword [eax]
cmp esi, 0x3ea
je 0x4d2a33
mov ecx, dword [0x914218]
cmp dword [ecx + 0x278], 0
jne 0x4d3434
mov ecx, dword [esp + 0xc]
push 1
call fcn.004d0690
jmp 0x4d34f3
mov ecx, dword [0x90588c]
test ecx, ecx
je 0x4d2a4d
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x90588c], 0
cmp word [esp + 0x78], 0
mov eax, dword [0x905894]
je 0x4d2a63
or byte [eax + 0xd2], 1
jmp 0x4d2a6a
and byte [eax + 0xd2], 0xfe
mov ecx, dword [0x905894]
mov dl, byte [esp + 0x13]
movzx ax, byte [esp + 0x12]
mov byte [ecx + 0xd3], dl
mov ecx, dword [0x905894]
push 0x27c
mov word [ecx + 4], ax
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x70c], 1
je 0x4d2ad1
mov edx, dword [0x905894]
movzx ecx, byte [ebx + 0x90]
push 1
push edx
push ecx
lea edx, [esp + 0x84]
push edx
push 0x4cb840
mov ecx, eax
call fcn.0045fa90
jmp 0x4d2ad3
xor eax, eax
lea edi, [eax + 0x68]
mov dword [0x90588c], eax
push 0x17
lea eax, [esp + 0x1c4]
push eax
push edi
mov dword [esp + 0x718], 0xffffffff
call fcn.0071ed54
push 0x3f
lea ecx, [esp + 0x510]
push ecx
lea esi, [edi + 0x30]
push esi
mov word [edi + 0x2e], 0
call fcn.0071ed54
mov word [edi + 0xae], 0
call fcn.00711d20
mov dword [edi + 0xb4], eax
call fcn.004d0260
mov edx, dword [0x914298]
add eax, dword [edx + 0x30]
push esi
mov dword [edi + 0xb8], eax
call fcn.004d0220
mov dword [edi + 0xb0], eax
mov eax, dword [0x914218]
mov ecx, dword [eax + 0x29c]
movzx edx, byte [ecx + 0x1e4]
mov byte [edi + 0xbc], dl
mov eax, dword [0x914218]
mov ecx, dword [eax + 0x29c]
movzx edx, byte [ecx + 0x1e5]
mov byte [edi + 0xbd], dl
xor eax, eax
mov ecx, 0x14
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x914218]
mov dword [esp + 0x6b], 1
mov ecx, dword [eax + 0x29c]
push 0x10
add ecx, 4
push ecx
lea edx, [esp + 0x45]
push edx
call fcn.0071ed54
mov eax, dword [0x914218]
mov ecx, dword [eax + 0x29c]
movzx edx, word [ecx + 0x26]
mov word [esp + 0x6b], dx
mov ecx, dword [eax + 0x29c]
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x6f], edx
mov ecx, dword [eax + 0x29c]
movzx edx, word [ecx + 0x28]
mov word [esp + 0x6d], dx
mov ecx, dword [eax + 0x29c]
movzx edx, byte [ecx + 0x1e3]
mov byte [esp + 0x73], dl
mov eax, dword [eax + 0x29c]
mov cl, byte [eax + 0x1e2]
add esp, 0x28
push 0xff
lea edx, [esp + 0x24]
mov byte [esp + 0x50], cl
mov ecx, dword [0x90588c]
push edx
mov byte [esp + 0x28], 0
mov byte [esp + 0x55], 0
call fcn.00460120
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x13c]
mov byte [0x85f5c0], al
cmp dword [ebx + 0x94], 0
je 0x4d2c39
call fcn.007122a0
mov ecx, dword [0x914218]
mov edx, dword [ecx + 8]
push edx
push str.defs_screens_multiplayer_lobby.in2
call fcn.0042faf0
mov ecx, dword [ebx + 0x94]
add esp, 8
mov dword [eax + 0xa0], ecx
cmp dword [ebx + 0x94], 0
je 0x4d2c80
mov edx, dword [eax]
push 0x7e4
mov ecx, eax
call dword [edx + 0x8c]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xb8]
test esi, esi
je 0x4d34f3
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
push 1
call dword [eax]
jmp 0x4d34f3
cmp eax, 0x1068
jne case.default.0x4d2e46
mov edx, dword [ebx - 8]
lea ecx, [ebx - 8]
push eax
call dword [edx + 0x8c]
mov esi, eax
call fcn.0040d660
mov edi, eax
mov eax, dword [esi]
mov ebx, dword [edi]
mov ecx, esi
call dword [eax + 0x150]
push eax
mov ecx, edi
call dword [ebx + 0x14]
jmp 0x4d34f3
cmp byte [ebx + 0x90], 0
mov dword [ebx + 0xc0], 0x4d0cb0
je 0x4d34f3
lea ecx, [ebx - 8]
call fcn.004d1ba0
mov ecx, dword [0x914218]
mov eax, dword [ecx + 0x29c]
and byte [eax + 0x1c6], 0x80
jmp 0x4d34f3
sub eax, 0x138b
je 0x4d2da3
sub eax, 1
je 0x4d2d61
sub eax, 1
jne case.default.0x4d2e46
cmp byte [ebx + 0x90], 0
mov dword [ebx + 0xc0], fcn.004d0c00
je 0x4d34f3
lea ecx, [ebx - 8]
call fcn.004d1ba0
mov edx, dword [0x914218]
mov eax, dword [edx + 0x29c]
mov cl, byte [eax + 0x1c6]
and cl, 0x83
or cl, 3
mov byte [eax + 0x1c6], cl
jmp 0x4d34f3
cmp byte [ebx + 0x90], 0
mov dword [ebx + 0xc0], 0x4d0d00
je 0x4d34f3
lea ecx, [ebx - 8]
call fcn.004d1ba0
mov edx, dword [0x914218]
mov eax, dword [edx + 0x29c]
mov cl, byte [eax + 0x1c6]
and cl, 0x82
or cl, 2
mov byte [eax + 0x1c6], cl
jmp 0x4d34f3
cmp byte [ebx + 0x90], 0
mov dword [ebx + 0xc0], 0x4d0c30
je 0x4d34f3
lea ecx, [ebx - 8]
call fcn.004d1ba0
mov edx, dword [0x914218]
mov eax, dword [edx + 0x29c]
mov cl, byte [eax + 0x1c6]
and cl, 0x81
or cl, 1
mov byte [eax + 0x1c6], cl
jmp 0x4d34f3
cmp byte [ebx + 0x90], 0
mov dword [ebx + 0xc0], 0x4d0d50
je 0x4d34f3
lea ecx, [ebx - 8]
call fcn.004d1ba0
mov edx, dword [0x914218]
mov eax, dword [edx + 0x29c]
mov cl, byte [eax + 0x1c6]
and cl, 0x84
or cl, 4
mov byte [eax + 0x1c6], cl
jmp 0x4d34f3
cmp eax, 0x270f
ja case.default.0x4d2e46
je 0x4d3426
sub eax, 0x138f
cmp eax, 6
ja case.default.0x4d2e46
jmp dword [eax*4 + 0x4d350c]
mov edx, dword [ebx - 8]
lea esi, [ebx - 8]
push 0xd05
mov ecx, esi
call dword [edx + 0x8c]
mov edi, eax
mov eax, dword [esi]
push 0x15b3
mov ecx, esi
call dword [eax + 0x8c]
test edi, edi
mov esi, eax
je 0x4d2e80
cmp dword [edi + 0xcc], 0
jne 0x4d2e9c
test esi, esi
je 0x4d34f3
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0xb0]
test eax, eax
jne 0x4d34f3
test edi, edi
je 0x4d2ec5
mov edx, dword [edi + 0xcc]
mov eax, dword [edi + 0xe4]
lea ecx, [edi + 0xe4]
push edx
call dword [eax + 0x3c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0xc], eax
je 0x4d2ecd
mov eax, dword [eax + 0x38]
jmp 0x4d2ecf
mov dword [esp + 0xc], 0
mov eax, esi
lea esi, [eax + 0xac]
mov ecx, 0x31
lea edi, [esp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00711d20
mov ecx, dword [esp + 0x16f]
shr eax, 0x10
shr ecx, 0x10
cmp eax, ecx
je 0x4d2f18
mov ecx, dword [0x905898]
mov eax, dword [ecx]
push 1
push 1
push str.net_wrongver
call dword [eax + 0x130]
jmp 0x4d34f3
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4d2f2e
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
cmp dword [esp + 0x16a], 0
je 0x4d2fe2
lea eax, [ebx - 8]
push eax
push str.Defs_Screens_Dialogs_enter_psw.in2
call fcn.0042faf0
mov esi, eax
add esp, 8
test esi, esi
je 0x4d2feb
mov eax, dword [esp + 0x173]
mov dword [esi + 0xa0], eax
mov ecx, dword [esp + 0x177]
mov dword [esi + 0xa4], ecx
mov edx, dword [0x914218]
mov eax, dword [edx + 0x29c]
add eax, 0x1c8
push eax
lea edi, [ebx + 0xa4]
push edi
call fcn.0071e658
mov eax, dword [esi]
add esp, 8
push 0xc
push edi
mov ecx, esi
call dword [eax + 0x128]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10c]
lea ecx, [esi + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esp + 0x1c], 0
je 0x4d34f3
mov ecx, dword [0x914218]
mov eax, dword [ecx + 0x29c]
add eax, 0x1c8
push edi
push eax
call fcn.0071e658
mov edi, dword [esp + 0x14]
add esp, 8
jmp 0x4d2feb
mov word [ebx + 0xa4], 0
mov edx, dword [0x914218]
mov eax, dword [edx + 0x29c]
lea ecx, [eax + 0xcc]
push 0xc8
add eax, 0xfe
push ecx
push eax
call fcn.0071f7e0
mov eax, dword [0x914218]
mov eax, dword [eax + 0x29c]
lea ecx, [esp + 0xc4]
add eax, 0xcc
push ecx
push eax
call fcn.0071e658
mov edx, dword [ebx - 8]
add esp, 0x14
push 0
lea ecx, [ebx - 8]
push 0
push str.mpwnd_joining
call dword [edx + 0x130]
cmp dword [ebx + 0x94], 0
jne 0x4d3092
mov ecx, dword [0x905890]
cmp dword [ecx + 0x14], 0
jne 0x4d3078
mov eax, dword [ecx]
add ebx, 0xa4
neg edi
push ebx
sbb edi, edi
and edi, dword [esp + 0x1c]
push 0x4cb840
push edi
call dword [eax + 0x14]
jmp 0x4d34f3
test edi, edi
mov eax, dword [esp + 0x14]
jne 0x4d3087
mov eax, dword [esp + 0x173]
mov dword [ebx + 0x9c], eax
jmp 0x4d34f3
cmp dword [0x905890], 0
jne 0x4d30ea
push 0x9c
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x70c], 0
je 0x4d30d8
movzx ecx, byte [ebx + 0x90]
push 1
push 0x4cb840
push 0x4d1ff0
push ecx
mov ecx, eax
call fcn.0045f7d0
jmp 0x4d30da
xor eax, eax
mov dword [esp + 0x70c], 0xffffffff
mov dword [0x905890], eax
movzx eax, byte [ebx + 0x90]
mov ecx, dword [0x8fdf5c]
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
mov ecx, dword [esp + 0x14]
mov esi, eax
mov edi, dword [esi]
push ecx
call fcn.00462bf0
add esp, 4
push eax
mov ecx, esi
call dword [edi + 0x24]
mov edx, dword [esi]
push 0x5a2d
mov ecx, esi
call dword [edx + 0x14]
mov ecx, dword [0x8fdf5c]
mov eax, dword [ecx]
push 0x20
lea edx, [esp + 0x184]
push edx
push esi
call dword [eax + 0x3c]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [0x905890]
mov edx, dword [ecx]
push 0xfa0
lea eax, [esp + 0x184]
push eax
call dword [edx + 0xc]
jmp 0x4d34f3
cmp byte [ebx + 0x90], 0
mov dword [ebx + 0xa0], 0
je 0x4d34f3
mov ecx, dword [0x914218]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov eax, dword [ebx - 8]
add ebx, 0xfffffff8
mov ecx, ebx
call dword [eax + 0x12c]
mov edx, dword [ebx]
push 0xd05
mov ecx, ebx
call dword [edx + 0x8c]
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x134]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x124]
mov ecx, dword [0x914218]
mov edx, dword [ecx + 0x29c]
mov byte [edx + 0x1c7], 0
jmp 0x4d34f3
cmp byte [ebx + 0x90], 0
mov dword [ebx + 0xa0], str.gametype__towers
je 0x4d34f3
mov eax, dword [0x914218]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov eax, dword [ebx - 8]
add ebx, 0xfffffff8
mov ecx, ebx
call dword [eax + 0x12c]
mov edx, dword [ebx]
push 0xd05
mov ecx, ebx
call dword [edx + 0x8c]
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x134]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x124]
mov ecx, dword [0x914218]
mov edx, dword [ecx + 0x29c]
mov byte [edx + 0x1c7], 1
jmp 0x4d34f3
cmp byte [ebx + 0x90], 0
mov dword [ebx + 0xa0], str.gametype__historical
je 0x4d34f3
mov eax, dword [0x914218]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov eax, dword [ebx - 8]
add ebx, 0xfffffff8
mov ecx, ebx
call dword [eax + 0x12c]
mov edx, dword [ebx]
push 0xd05
mov ecx, ebx
call dword [edx + 0x8c]
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x134]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x124]
mov ecx, dword [0x914218]
mov edx, dword [ecx + 0x29c]
mov byte [edx + 0x1c7], 2
jmp 0x4d34f3
cmp byte [ebx + 0x90], 0
mov dword [ebx + 0xa0], str.gametype__open_field
je 0x4d34f3
mov eax, dword [0x914218]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov eax, dword [ebx - 8]
add ebx, 0xfffffff8
mov ecx, ebx
call dword [eax + 0x12c]
mov edx, dword [ebx]
push 0xd05
mov ecx, ebx
call dword [edx + 0x8c]
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x134]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x124]
mov ecx, dword [0x914218]
mov edx, dword [ecx + 0x29c]
mov byte [edx + 0x1c7], 3
jmp 0x4d34f3
cmp byte [ebx + 0x90], 0
mov dword [ebx + 0xa0], str.gametype__castle_assault
je 0x4d34f3
mov eax, dword [0x914218]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov eax, dword [ebx - 8]
add ebx, 0xfffffff8
mov ecx, ebx
call dword [eax + 0x12c]
mov edx, dword [ebx]
push 0xd05
mov ecx, ebx
call dword [edx + 0x8c]
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x134]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x124]
mov ecx, dword [0x914218]
mov edx, dword [ecx + 0x29c]
mov byte [edx + 0x1c7], 4
jmp 0x4d34f3
mov eax, dword [ebx - 8]
lea esi, [ebx - 8]
push 0x138f
mov ecx, esi
call dword [eax + 0x8c]
cmp word [eax + 0xd4], 0
je 0x4d33f0
mov dword [ebx + 0xc4], 0x4d0320
mov ecx, dword [0x914218]
mov eax, dword [ecx + 0x29c]
or byte [eax + 0x1c6], 0x80
jmp 0x4d340d
mov dword [ebx + 0xc4], 0
mov edx, dword [0x914218]
mov eax, dword [edx + 0x29c]
and byte [eax + 0x1c6], 0x7f
cmp byte [ebx + 0x90], 0
je 0x4d34f3
mov ecx, esi
call fcn.004d1ba0
jmp 0x4d34f3
mov eax, dword [0x914218]
cmp dword [eax + 0x278], 0
je 0x4d3445
call fcn.0040d640
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x54]
jmp 0x4d34f3
push 0xa0
mov byte [0x85f5c0], 0xff
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x70c], 2
je 0x4d3477
push 1
mov ecx, eax
call fcn.004c7050
jmp 0x4d3479
xor eax, eax
mov ecx, dword [0x914218]
mov ecx, dword [ecx + 8]
mov edx, dword [eax]
push 0
push ecx
mov ecx, eax
mov dword [esp + 0x714], 0xffffffff
call dword [edx + 0x124]
add ebx, 0xfffffff8
je 0x4d34f3
mov edx, dword [ebx + 8]
lea ecx, [ebx + 8]
push 1
call dword [edx]
jmp 0x4d34f3
cmp eax, 0xd81
jne 0x4d34f3
mov eax, dword [0x905890]
cmp dword [eax + 0x14], 0
jne 0x4d34cb
mov edx, dword [ebx - 8]
lea ecx, [ebx - 8]
call dword [edx + 0x128]
jmp 0x4d34f3
mov ecx, dword [0x905898]
test ecx, ecx
je 0x4d34da
lea eax, [ecx + 8]
jmp 0x4d34dc
xor eax, eax
push 0x3e8
push 0
push 0
push 0xd81
mov edx, dword [ecx]
push eax
call dword [edx + 0xf0]
mov ecx, dword [esp + 0x704]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4