Function at 0x4d154c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc84
push esi
mov dword [ebp - 0xc80], ecx
mov dword [ebp - 0x60c], 0
mov dword [ebp - 0x81c], 0x20
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x608], 0
mov dword [ebp - 0x818], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
cmp dword [ecx + eax*4 + 0x2344], 0
jne 0x4d15b2
xor eax, eax
jmp 0x4d2556
push 0x200
push 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
add ecx, 0x5a8
push ecx
call fcn.0054bfb0
add esp, 0xc
mov dword [ebp - 4], 0x30
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
mov dword [ecx + 0x258c], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
cmp dword [ecx + 0x29024], 0
je 0x4d1633
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
push ecx
call fcn.0050c45d
add esp, 4
mov dword [ebp - 0x810], eax
jmp 0x4d163d
mov dword [ebp - 0x810], 1
mov edx, dword [ebp - 0x810]
push edx
push str.nTotalMB___X_r_n
lea eax, [ebp - 0x80c]
push eax
call fcn.0054c45b
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
cmp dword [eax + 0x4764], 0xe
jl 0x4d1738
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
cmp dword [eax + 0x4764], 0x1c
jg 0x4d1738
push 0
push 0x200
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
add eax, 0x5a8
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
push eax
call fcn.004862a1
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
add eax, 0x27998
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
add eax, 0x5a8
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
push eax
call fcn.004db12c
add esp, 0xc
lea ecx, [ebp - 0x608]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
push ecx
call fcn.00510326
add esp, 8
mov dword [ebp - 0x818], eax
jmp 0x4d18b4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
cmp dword [ecx + 0x4764], 8
jl 0x4d17f5
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
cmp dword [ecx + 0x4764], 0xd
jg 0x4d17f5
push 0
push 0x200
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
add ecx, 0x5a8
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
push ecx
call fcn.00469d70
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
add ecx, 0x27998
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
add ecx, 0x5a8
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
push ecx
call fcn.004db12c
add esp, 0xc
jmp 0x4d18b4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
cmp dword [ecx + 0x4764], 4
jl 0x4d18b4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
cmp dword [ecx + 0x4764], 5
jg 0x4d18b4
push 0
push 0x200
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
add ecx, 0x5a8
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
push ecx
call fcn.0044e90d
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
add ecx, 0x27998
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
add ecx, 0x5a8
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
push ecx
call fcn.004db12c
add esp, 0xc
mov dword [ebp - 4], 0x20
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x204]
and ecx, 0xff
cmp ecx, 2
je 0x4d1a66
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
cmp dword [ecx + 0x27a18], 0
jle 0x4d18f5
cmp dword [ebp - 0x810], 0
ja 0x4d18fe
cmp dword [ebp - 0x818], 0
je 0x4d1961
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov dword [eax + edx*4 + 0x244], 0xffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x204]
or ah, 1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov dword [edx + ecx*4 + 0x204], eax
mov eax, dword [ebp + 8]
push eax
push 0x5aec2c
lea ecx, [ebp - 0x80c]
push ecx
call fcn.0054c45b
add esp, 0xc
lea edx, [ebp - 0x80c]
push edx
call fcn.00536ebf
add esp, 4
jmp 0x4d1a66
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + eax*4 + 0x244], 0xfffffffe
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x204]
and ch, 0xfe
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov dword [eax + edx*4 + 0x204], ecx
mov ecx, dword [ebp + 8]
push ecx
push str.m_PortStatus__d___SMICTRL_PRETESTED
lea edx, [ebp - 0x80c]
push edx
call fcn.0054c45b
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
call fcn.00536ebf
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
cmp dword [eax + 0x29028], 0
je 0x4d1a66
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
xor ecx, ecx
mov cl, byte [eax + 0x6a8]
cmp ecx, 0xff
je 0x4d1a66
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
xor edx, edx
mov dl, byte [ecx + 0x6a9]
cmp edx, 0xff
je 0x4d1a66
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x204]
or dh, 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + eax*4 + 0x204], edx
mov edx, dword [ebp + 8]
push edx
push str.AutoPolling:m_PortStatus__d___SMICTRL_PRETESTED
lea eax, [ebp - 0x80c]
push eax
call fcn.0054c45b
add esp, 0xc
lea ecx, [ebp - 0x80c]
push ecx
call fcn.00536ebf
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
mov eax, dword [ebp - 4]
lea ecx, [edx + eax + 0x5a8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
mov edx, dword [ecx + 0x4764]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc80]
call fcn.004cba6c
mov dword [ebp - 0x60c], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.Port_d_DoReadFlashIDInfo_OnePortUse:_szInfo___s
lea eax, [ebp - 0x80c]
push eax
call fcn.0054c45b
add esp, 0x10
lea ecx, [ebp - 0x80c]
push ecx
call fcn.00536ebf
add esp, 4
cmp dword [ebp - 0x60c], 0
je 0x4d24f3
mov edx, dword [ebp + 0xc]
push edx
call fcn.0054c3e0
add esp, 4
test eax, eax
jne 0x4d1b8d
mov eax, dword [ebp + 0xc]
push eax
push 0x31
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc80]
call fcn.004d1250
mov edx, dword [ebp + 0xc]
push edx
call fcn.0054c3e0
add esp, 4
test eax, eax
jne 0x4d1b33
push str.FlashID_Error
mov eax, dword [ebp + 0xc]
push eax
call fcn.0054c45b
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov dword [edx + ecx*4 + 0x244], 0x31
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x204]
and edx, 0xff00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + eax*4 + 0x204], edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0xc80]
mov ecx, dword [esi + ecx*4 + 0x204]
mov dword [eax + edx*4 + 0x204], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
cmp dword [ecx + 0x27a18], 0
jle 0x4d1bdf
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
mov eax, dword [ecx + 0x27a18]
cdq
and edx, 0x7ff
add eax, edx
sar eax, 0xb
push eax
push 0x5aecf4
lea edx, [ebp - 0xb70]
push edx
call fcn.0054c45b
add esp, 0xc
jmp 0x4d1c53
cmp dword [ebp - 0x818], 0
je 0x4d1c08
mov eax, dword [ebp - 0x608]
shr eax, 0xb
push eax
push 0x5aecfc
lea ecx, [ebp - 0xb70]
push ecx
call fcn.0054c45b
add esp, 0xc
jmp 0x4d1c53
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
mov edx, dword [ecx + 0x4764]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
add edx, 0x5a8
push edx
call fcn.0053549b
add esp, 8
push eax
push str.__d_MB
lea eax, [ebp - 0xb70]
push eax
call fcn.0054c45b
add esp, 0xc
lea ecx, [ebp - 0xb70]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0054bed0
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
cmp dword [edx + 0x2ef78], 0
je 0x4d1cce
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
cmp dword [edx + 0x27a18], 0
jle 0x4d1cce
cmp dword [ebp - 0x810], 0
jbe 0x4d1cce
mov dword [ebp - 0xc7c], 0xffffffff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
push eax
call fcn.00504129
add esp, 8
mov dword [ebp - 0xc7c], eax
push 0x5aed0c
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0054bed0
add esp, 8
mov dword [ebp - 0xb74], 0
jmp 0x4d1cfa
mov edx, dword [ebp - 0xb74]
add edx, 1
mov dword [ebp - 0xb74], edx
cmp dword [ebp - 0xb74], 6
jge 0x4d1d69
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xb74]
xor ecx, ecx
mov cl, byte [edx + eax + 0x5a8]
push ecx
push 0x5aed10
lea edx, [ebp - 0xb70]
push edx
call fcn.0054c45b
add esp, 0xc
lea eax, [ebp - 0xb70]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0054bed0
add esp, 8
cmp dword [ebp - 0xb74], 5
jge 0x4d1d67
push 0x5aed18
mov edx, dword [ebp + 0xc]
push edx
call fcn.0054bed0
add esp, 8
jmp 0x4d1ceb
lea eax, [ebp - 0xc78]
push eax
call fcn.0053534c
add esp, 4
push str.UFD_MPLocalSetting.ini
lea ecx, [ebp - 0xc78]
push ecx
call fcn.0054bed0
add esp, 8
lea edx, [ebp - 0xc78]
push edx
push 0
push str.EnableShowD3ED3
push str.LocalSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x4d1ef5
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
cmp dword [edx + 0x4764], 0xe
jl 0x4d1ea1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
cmp dword [edx + 0x4764], 0x1c
jg 0x4d1ea1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
add edx, 0x1b0
push edx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
add edx, 0x29778
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
mov eax, dword [edx + 0x2976c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
add eax, 0x5a8
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
push eax
mov ecx, dword [ebp - 0xc80]
call fcn.004c787e
test eax, eax
jne 0x4d1ea1
push 0x200
push 0x30
mov ecx, dword [ebp - 0xc80]
add ecx, 4
push ecx
call fcn.0054bfb0
add esp, 0xc
mov dword [ebp - 0x60c], 0
push str.Boot_CardMode_Cant_Create
mov edx, dword [ebp - 0xc80]
add edx, 0x22c4
push edx
call fcn.0054bec0
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
mov eax, dword [edx + 0x4788]
mov dword [ebp - 0xc84], eax
cmp dword [ebp - 0xc84], 1
je 0x4d1ed1
cmp dword [ebp - 0xc84], 2
je 0x4d1ee4
jmp 0x4d1ef5
push str.__D3_
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0054bed0
add esp, 8
jmp 0x4d1ef5
push str.__ED3_
mov edx, dword [ebp + 0xc]
push edx
call fcn.0054bed0
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
cmp dword [edx + 0x4764], 0xe
jl 0x4d1fc7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
cmp dword [edx + 0x4764], 0x1c
jg 0x4d1fc7
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x91c]
push eax
call fcn.0054bfb0
add esp, 0xc
push 0
push pe_nt_image_headers32
lea ecx, [ebp - 0x91c]
push ecx
push 0xff
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
push ecx
call fcn.00500476
add esp, 0x14
mov edx, dword [ebp - 0x864]
and edx, 0xff
and edx, 1
test edx, edx
jne 0x4d1fa3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
xor eax, eax
mov al, byte [edx + 0x5dd]
cmp eax, 0xd7
jne 0x4d1fb6
push 0x5aed84
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0054bed0
add esp, 8
jmp 0x4d1fc7
push 0x5aed8c
mov edx, dword [ebp + 0xc]
push edx
call fcn.0054bed0
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x204]
and edx, 0x100
test edx, edx
je 0x4d24f1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
cmp dword [edx + 0x4764], 0xe
jl 0x4d24f1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
cmp dword [edx + 0x4764], 0x1c
jg 0x4d24f1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
cmp dword [edx + 0x2f778], 0
je 0x4d24f1
push 0x200
push 0
lea eax, [ebp - 0xb60]
push eax
call fcn.0054bfb0
add esp, 0xc
push 0
push 0x200
lea ecx, [ebp - 0xb60]
push ecx
push 0xf8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
push ecx
call fcn.00500476
add esp, 0x14
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
mov byte [ecx + 0x1b4], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
mov byte [ecx + 0x1b6], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
mov dl, byte [ebp - 0xac0]
mov byte [ecx + 0x1bc], dl
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
cmp dword [edx + 0x4764], 0x14
jne 0x4d20f7
mov eax, dword [ebp - 0xb42]
and eax, 0xff
mov dword [ebp - 0x960], eax
jmp 0x4d21d8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
cmp dword [eax + 0x4764], 0x12
jne 0x4d21c4
cmp dword [0x5cc484], 0
je 0x4d21c2
mov ecx, dword [ebp - 0x9ee]
and ecx, 0xff
and ecx, 0x10
test ecx, ecx
je 0x4d215e
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
mov byte [ecx + 0x1b4], 1
push 0x5aed94
mov edx, dword [ebp + 0xc]
push edx
call fcn.0054bed0
add esp, 8
jmp 0x4d21c2
mov eax, dword [ebp - 0x9f0]
and eax, 0xff
and eax, 0x10
test eax, eax
je 0x4d219a
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
mov byte [eax + 0x1b4], 0
push 0x5aed9c
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0054bed0
add esp, 8
jmp 0x4d21c2
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
mov byte [ecx + 0x1b6], 1
push 0x5aeda4
mov edx, dword [ebp + 0xc]
push edx
call fcn.0054bed0
add esp, 8
jmp 0x4d21d8
mov eax, dword [ebp - 0xabf]
and eax, 0xff
and eax, 3
mov dword [ebp - 0x960], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
cmp dword [eax + 0x4764], 0x12
je 0x4d22a3
cmp dword [0x5cc484], 0
je 0x4d22a3
mov ecx, dword [ebp - 0x9ee]
and ecx, 0xff
and ecx, 0x10
test ecx, ecx
je 0x4d223f
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
mov byte [ecx + 0x1b4], 1
push str.__S__
mov edx, dword [ebp + 0xc]
push edx
call fcn.0054bed0
add esp, 8
jmp 0x4d22a3
mov eax, dword [ebp - 0x9f0]
and eax, 0xff
and eax, 0x10
test eax, eax
je 0x4d227b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x2344]
mov byte [eax + 0x1b4], 0
push str.__P__
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0054bed0
add esp, 8
jmp 0x4d22a3
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
mov byte [ecx + 0x1b6], 1
push str.__B__
mov edx, dword [ebp + 0xc]
push edx
call fcn.0054bed0
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
cmp dword [edx + 0x4764], 0x15
je 0x4d22f2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
cmp dword [edx + 0x4764], 0x14
je 0x4d22f2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
cmp dword [edx + 0x4764], 0x12
jne 0x4d24f1
cmp dword [0x5be05c], 0
je 0x4d239d
mov eax, dword [ebp - 0x9eb]
and eax, 0xff
and eax, 8
test eax, eax
je 0x4d2366
cmp dword [0x5be5c4], 0
je 0x4d232d
push 0x5aedc4
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0054bed0
add esp, 8
jmp 0x4d2364
mov edx, dword [ebp - 0x9ee]
and edx, 0xff
and edx, 1
test edx, edx
je 0x4d2353
push 0x5aedc8
mov eax, dword [ebp + 0xc]
push eax
call fcn.0054bed0
add esp, 8
jmp 0x4d2364
push 0x5aedcc
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0054bed0
add esp, 8
jmp 0x4d239d
mov edx, dword [ebp - 0x9ee]
and edx, 0xff
and edx, 1
test edx, edx
je 0x4d238c
push 0x5aedd0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0054bed0
add esp, 8
jmp 0x4d239d
push 0x5aedd4
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0054bed0
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
cmp dword [ecx + 0x28f00], 0
je 0x4d2406
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x2344]
cmp dword [ecx + 0x4764], 0x14
jne 0x4d2406
mov edx, dword [ebp - 0xb45]
and edx, 0xff
and edx, 2
test edx, edx
je 0x4d23f5
push 0x5aedd8
mov eax, dword [ebp + 0xc]
push eax
call fcn.0054bed0
add esp, 8
jmp 0x4d2406
push 0x5aede0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0054bed0
add esp, 8
xor edx, edx
test edx, edx
je 0x4d24f1
push 0x40
push 0
lea eax, [ebp - 0x95c]
push eax
call fcn.0054bfb0
add esp, 0xc
push 0x600
push 0
lea ecx, [ebp - 0x604]
push ecx
call fcn.0054bfb0
add esp, 0xc
push 0x600
lea edx, [ebp - 0x604]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + eax*4 + 0x2344]
push edx
call fcn.00482a03
add esp, 0xc
mov dword [ebp - 0xb74], 0
jmp 0x4d2479
mov eax, dword [ebp - 0xb74]
add eax, 1
mov dword [ebp - 0xb74], eax
mov ecx, dword [ebp - 0x81c]
xor edx, edx
mov dl, byte [ebp + ecx - 0x572]
mov eax, edx
sub eax, 2
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0xb74], eax
jge 0x4d24cd
mov eax, dword [ebp - 0x81c]
lea ecx, [ebp + eax - 0x570]
mov edx, dword [ebp - 0xb74]
mov eax, dword [ebp - 0xb74]
mov cl, byte [ecx + eax*2]
mov byte [ebp + edx - 0x95c], cl
mov edx, dword [ebp - 0xb74]
mov byte [ebp + edx - 0x95b], 0
jmp 0x4d246a
push 0x5aedec
mov eax, dword [ebp + 0xc]
push eax
call fcn.0054bed0
add esp, 8
lea ecx, [ebp - 0x95c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0054bed0
add esp, 8
jmp 0x4d2550
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + eax*4 + 0x244], 0x31
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + edx*4 + 0x204]
and ecx, 0xff00
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc80]
mov dword [eax + edx*4 + 0x204], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + ecx*4 + 0x204]
and ah, 0xfe
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc80]
mov dword [edx + ecx*4 + 0x204], eax
mov eax, dword [ebp - 0x60c]
pop esi
mov esp, ebp
pop ebp
ret 8