Function at 0x100313f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10354748
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x10525930]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
sub esp, 0x20
mov eax, esp
mov dword [ebp - 0x7c], esp
push 0x104c2ef4
push 0x104c7538
push str.__line:
sub esp, 0x20
mov ebx, ecx
mov edi, edx
mov ecx, esp
mov dword [ebp - 0x78], esp
push str.._brom_boot_rom.cpp
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x4c], eax
call fcn.10003680
lea esi, [ebp - 0x1c8]
call fcn.100af830
add esp, 0x20
mov dword [ebp - 0x54], eax
push 0x104c3ebc
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.10003680
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x54]
push ecx
push eax
lea edx, [ebp - 0x248]
push edx
call fcn.10016ef0
add esp, 0xc
push eax
lea eax, [ebp - 0x1e8]
push eax
mov byte [ebp - 4], 2
call fcn.10016fa0
add esp, 0xc
push eax
lea ecx, [ebp - 0x208]
push ecx
mov byte [ebp - 4], 3
call fcn.10016fa0
add esp, 0xc
push eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x4c]
push eax
call fcn.10016fa0
sub esp, 0x14
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x58], esp
push str.boot_rom::get_chip_id
call fcn.10003680
mov ecx, 1
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.10053f40
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1ec], 0x10
jb 0x10031513
mov edx, dword [ebp - 0x200]
push edx
call fcn.1025a370
add esp, 4
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x1ec], 0xf
mov dword [ebp - 0x1f0], esi
mov byte [ebp - 0x200], 0
call fcn.10001370
mov byte [ebp - 4], 8
cmp dword [ebp - 0x1cc], 0x10
jb 0x10031553
mov eax, dword [ebp - 0x1e0]
push eax
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x1cc], 0xf
mov dword [ebp - 0x1d0], esi
mov byte [ebp - 0x1e0], 0
call fcn.10001370
mov byte [ebp - 4], 9
cmp dword [ebp - 0x22c], 0x10
jb 0x10031591
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x22c], 0xf
mov dword [ebp - 0x230], esi
mov byte [ebp - 0x240], 0
call fcn.10001370
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x20c], 0x10
jb 0x100315cf
mov edx, dword [ebp - 0x220]
push edx
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x20c], 0xf
mov dword [ebp - 0x210], esi
mov byte [ebp - 0x220], 0
call fcn.10001370
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x1ac], 0x10
jb 0x1003160d
mov eax, dword [ebp - 0x1c0]
push eax
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
call fcn.10001370
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 2
mov dword [ebp - 0x4c], ecx
call fcn.1005c450
mov eax, dword [eax]
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x48]
push ecx
mov esi, eax
call fcn.10016d30
mov edx, dword [eax]
mov dword [ebp - 0x80], edx
mov dword [eax], 0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x1003167c
push eax
call fcn.1029f770
add esp, 4
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x10031a31
push 0x104c2ef4
push 0x104c7e14
push str.__line:
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x58], esp
push str.._brom_boot_rom.cpp
call fcn.10003680
lea esi, [ebp - 0xa4]
call fcn.100af830
add esp, 0x20
mov esi, eax
push 0x104c3ebc
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0xd
call fcn.10003680
push esi
push eax
lea eax, [ebp - 0x124]
push eax
mov byte [ebp - 4], 0xe
call fcn.10016ef0
add esp, 0xc
push eax
lea ecx, [ebp - 0x144]
push ecx
mov byte [ebp - 4], 0xf
call fcn.10016fa0
add esp, 0xc
push eax
lea edx, [ebp - 0x104]
push edx
mov byte [ebp - 4], 0x10
call fcn.10016fa0
add esp, 0xc
push eax
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 0x11
call fcn.10016fa0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0x12
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [ebp - 0x80]
push ecx
push eax
lea edx, [ebp - 0x154]
push edx
call fcn.10016de0
add esp, 0xc
mov byte [ebp - 4], 0x13
mov ecx, dword [eax + 4]
add ecx, 4
push str.get_chip_id
mov ebx, 0xc
call fcn.10013de0
cmp dword [esi + 0x1c], 0x10
mov ebx, dword [esi + 0x18]
jb 0x10031765
mov esi, dword [esi + 8]
jmp 0x10031768
add esi, 8
push esi
mov ecx, eax
call fcn.10013de0
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 0x12
call fcn.100132f0
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0xa8], 0x10
jb 0x1003179b
mov eax, dword [ebp - 0xbc]
push eax
call fcn.1025a370
add esp, 4
xor ebx, ebx
mov esi, 0xf
push 3
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xac], ebx
mov byte [ebp - 0xbc], bl
call fcn.10239250
mov eax, dword [ebp - 0xc4]
cmp eax, 0xfffffffd
je 0x100317eb
cmp eax, ebx
je 0x100317e5
lea ecx, [ecx]
mov dword [eax], ebx
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ecx + 4]
mov dword [ebp - 0xc4], eax
cmp eax, ebx
jne 0x100317d0
mov dword [ebp - 0xc4], ebx
lea ecx, [ebp - 0x4c]
call fcn.10239290
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0xe8], 0x10
jb 0x1003180f
mov edx, dword [ebp - 0xfc]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xec], ebx
mov byte [ebp - 0xfc], bl
call fcn.10239250
mov eax, dword [ebp - 0x104]
cmp eax, 0xfffffffd
je 0x1003185b
cmp eax, ebx
je 0x10031855
lea ecx, [ecx]
mov dword [eax], ebx
mov eax, dword [ebp - 0x104]
mov eax, dword [eax + 4]
mov dword [ebp - 0x104], eax
cmp eax, ebx
jne 0x10031840
mov dword [ebp - 0x104], ebx
lea ecx, [ebp - 0x84]
call fcn.10239290
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x128], 0x10
jb 0x10031882
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], ebx
mov byte [ebp - 0x13c], bl
call fcn.10239250
mov eax, dword [ebp - 0x144]
cmp eax, 0xfffffffd
je 0x100318cb
cmp eax, ebx
je 0x100318c5
lea ecx, [ecx]
mov dword [eax], ebx
mov edx, dword [ebp - 0x144]
mov eax, dword [edx + 4]
mov dword [ebp - 0x144], eax
cmp eax, ebx
jne 0x100318b0
mov dword [ebp - 0x144], ebx
lea ecx, [ebp - 0x60]
call fcn.10239290
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x108], 0x10
jb 0x100318ef
mov eax, dword [ebp - 0x11c]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x10c], ebx
mov byte [ebp - 0x11c], bl
call fcn.10239250
mov eax, dword [ebp - 0x124]
cmp eax, 0xfffffffd
je 0x1003193b
cmp eax, ebx
je 0x10031935
lea ebx, [ebx]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x124]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x124], eax
cmp eax, ebx
jne 0x10031920
mov dword [ebp - 0x124], ebx
lea ecx, [ebp - 0x68]
call fcn.10239290
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xc8], 0x10
jb 0x1003195f
mov edx, dword [ebp - 0xdc]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xcc], ebx
mov byte [ebp - 0xdc], bl
call fcn.10239250
mov eax, dword [ebp - 0xe4]
cmp eax, 0xfffffffd
je 0x100319ab
cmp eax, ebx
je 0x100319a5
lea ebx, [ebx]
mov dword [eax], ebx
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp - 0xe4], eax
cmp eax, ebx
jne 0x10031990
mov dword [ebp - 0xe4], ebx
lea ecx, [ebp - 0x5c]
call fcn.10239290
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x88], 0x10
jb 0x100319cf
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
call fcn.10239250
mov eax, dword [ebp - 0xa4]
cmp eax, 0xfffffffd
je 0x10031a1b
cmp eax, ebx
je 0x10031a15
lea ebx, [ebx]
mov dword [eax], ebx
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 4]
mov dword [ebp - 0xa4], eax
cmp eax, ebx
jne 0x10031a00
mov dword [ebp - 0xa4], ebx
lea ecx, [ebp - 0x50]
call fcn.10239290
mov eax, dword [ebp - 0x80]
cmp eax, ebx
jne 0x10031687
mov ebx, dword [ebp - 0x64]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x10031a49
push eax
call fcn.1029f770
add esp, 4
mov dword [ebp - 0x80], 0
mov byte [ebp - 4], 0x14
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
push edx
mov byte [ebp - 0x3d], 0
mov byte [ebp - 0x44], 0xfd
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 1
lea edx, [ebp - 0x44]
push edx
call eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
push 1
lea eax, [ebp - 0x3d]
push eax
call edx
mov al, byte [ebp - 0x3d]
cmp al, 0xfd
je 0x10031af6
push 0x78
push str.._brom_boot_rom.cpp
push str.int___thiscall_boot_rom::get_chip_id_struct_chip_id_struct__
movzx eax, al
push str.get_hw_id_error._return_0x_X
lea ecx, [ebp - 0x300]
push ecx
mov dword [ebp - 0x50], eax
call fcn.100167c0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x74]
lea edx, [ebp - 0x50]
push ecx
mov edi, eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], fcn.100776d0
mov dword [ebp - 0x6c], 0x100222b0
call fcn.1001ec90
add esp, 4
sub esp, 0xb8
mov edx, esp
mov dword [ebp - 0x58], esp
push edx
mov ecx, eax
call fcn.1003f490
push 1
lea esi, [ebp - 0x348]
call fcn.1002f4e0
push eax
mov byte [ebp - 4], 0x16
call fcn.100170a0
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov eax, dword [eax]
push edx
push 2
push edi
call eax
movzx ecx, word [edi]
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
push ecx
call esi
mov word [edi], ax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
push 2
lea eax, [ebp - 0x4c]
push eax
call edx
mov eax, dword [ebp - 0x4c]
push eax
call esi
movzx ecx, ax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebx + 8]
push eax
mov byte [ebp - 0x44], 0xfc
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push 1
lea eax, [ebp - 0x44]
push eax
call edx
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov eax, dword [eax]
push edx
push 1
lea edx, [ebp - 0x3d]
push edx
call eax
mov al, byte [ebp - 0x3d]
cmp al, 0xfc
je 0x10031bdc
push 0x86
push str.._brom_boot_rom.cpp
push str.int___thiscall_boot_rom::get_chip_id_struct_chip_id_struct__
movzx ecx, al
push str.get_sw_version_error._return_0x_X
lea edx, [ebp - 0x300]
push edx
mov dword [ebp - 0x50], ecx
call fcn.100167c0
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x50]
push edx
mov edi, eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], fcn.100776d0
mov dword [ebp - 0x6c], 0x100222b0
call fcn.1001ec90
add esp, 4
sub esp, 0xb8
mov ecx, esp
mov dword [ebp - 0x58], esp
push ecx
mov ecx, eax
call fcn.1003f490
push 1
lea esi, [ebp - 0x348]
call fcn.1002f4e0
push eax
mov byte [ebp - 4], 0x18
call fcn.100170a0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
push 2
lea esi, [edi + 2]
push esi
call edx
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esi], ax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
push 2
lea esi, [edi + 4]
push esi
call edx
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esi], ax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
push 2
lea esi, [edi + 6]
push esi
call edx
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esi], ax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
push 2
lea eax, [ebp - 0x4c]
push eax
call edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
push edi
mov dword [ebp - 0x4c], ecx
call fcn.10051190
mov edx, 0x6757
add esp, 4
cmp word [edi], dx
jne 0x1003200c
push 1
push 0x10206054
push ebx
lea ecx, [ebp - 0x50]
call fcn.100355d0
mov esi, eax
test esi, esi
jge 0x10031ca3
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.100542c0
mov eax, esi
jmp 0x100327d0
mov cl, byte [ebp - 0x50]
xor edx, edx
and cl, 0x60
cmp cl, 0x60
sete dl
lea esi, [edi + 8]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], 2
mov dword [ebp - 0x68], eax
mov dword [esi], edx
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x48]
push edx
mov esi, eax
call fcn.10016d30
mov ecx, dword [eax]
mov dword [ebp - 0x54], ecx
mov dword [eax], 0
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10031d02
push eax
call fcn.1029f770
add esp, 4
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x54], 0
je 0x10032008
push 0x104c2ef4
push 0x104c7eac
push str.__line:
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x58], esp
push str.._brom_boot_rom.cpp
call fcn.10003680
lea esi, [ebp - 0xc4]
call fcn.100af830
add esp, 0x20
mov esi, eax
push 0x104c3ebc
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0x1a
call fcn.10003680
push esi
push eax
lea edx, [ebp - 0x144]
push edx
mov byte [ebp - 4], 0x1b
call fcn.10016ef0
add esp, 0xc
push eax
lea eax, [ebp - 0x124]
push eax
mov byte [ebp - 4], 0x1c
call fcn.10016fa0
add esp, 0xc
push eax
lea ecx, [ebp - 0xe4]
push ecx
mov byte [ebp - 4], 0x1d
call fcn.10016fa0
add esp, 0xc
push eax
lea edx, [ebp - 0xa4]
push edx
mov byte [ebp - 4], 0x1e
call fcn.10016fa0
add esp, 0xc
mov esi, eax
push str.chip_evolution:__d
lea eax, [ebp - 0x300]
push eax
mov byte [ebp - 4], 0x1f
call fcn.100167c0
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x74]
push edx
mov edi, eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], fcn.100776d0
mov dword [ebp - 0x6c], 0x100222b0
call fcn.1001ec90
add esp, 4
lea edx, [ebp - 0x174]
mov ecx, eax
call fcn.100168d0
mov edi, eax
mov byte [ebp - 4], 0x21
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [ebp - 0x54]
push ecx
push eax
lea edx, [ebp - 0x154]
push edx
call fcn.10016de0
add esp, 0xc
mov byte [ebp - 4], 0x22
mov ecx, dword [eax + 4]
mov ebx, dword [edi + 0x18]
add ecx, 4
cmp dword [edi + 0x1c], 0x10
jb 0x10031e25
mov edi, dword [edi + 8]
jmp 0x10031e28
add edi, 8
push edi
call fcn.10013de0
cmp dword [esi + 0x1c], 0x10
mov ebx, dword [esi + 0x18]
jb 0x10031e3c
mov edx, dword [esi + 8]
jmp 0x10031e3f
lea edx, [esi + 8]
push edx
mov ecx, eax
call fcn.10013de0
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 0x21
call fcn.100132f0
mov edi, 0x10
mov byte [ebp - 4], 0x20
cmp dword [ebp - 0x158], edi
jb 0x10031e76
mov eax, dword [ebp - 0x16c]
push eax
call fcn.1025a370
add esp, 4
xor ebx, ebx
mov esi, 0xf
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 0x16c], bl
call fcn.10001370
lea ecx, [ebp - 0x300]
push ecx
mov byte [ebp - 4], 0x1f
call fcn.1000b890
mov byte [ebp - 4], 0x1e
cmp dword [ebp - 0x88], edi
jb 0x10031ec5
mov edx, dword [ebp - 0x9c]
push edx
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
call fcn.10001370
mov byte [ebp - 4], 0x1d
cmp dword [ebp - 0xc8], edi
jb 0x10031efd
mov eax, dword [ebp - 0xdc]
push eax
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xcc], ebx
mov byte [ebp - 0xdc], bl
call fcn.10001370
mov byte [ebp - 4], 0x1c
cmp dword [ebp - 0x108], edi
jb 0x10031f35
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x10c], ebx
mov byte [ebp - 0x11c], bl
call fcn.10001370
mov byte [ebp - 4], 0x1b
cmp dword [ebp - 0x128], edi
jb 0x10031f6d
mov edx, dword [ebp - 0x13c]
push edx
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], ebx
mov byte [ebp - 0x13c], bl
call fcn.10001370
mov byte [ebp - 4], 0x1a
cmp dword [ebp - 0xe8], edi
jb 0x10031fa5
mov eax, dword [ebp - 0xfc]
push eax
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x104]
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xec], ebx
mov byte [ebp - 0xfc], bl
call fcn.10001370
mov byte [ebp - 4], 0x19
cmp dword [ebp - 0xa8], edi
jb 0x10031fdd
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xac], ebx
mov byte [ebp - 0xbc], bl
call fcn.10001370
mov ebx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x148]
jmp 0x10031d02
mov byte [ebp - 4], 0x14
mov edx, 0x6755
cmp word [edi], dx
jne 0x10032043
push 1
push 0x1020627c
push ebx
lea ecx, [ebp - 0x50]
call fcn.100355d0
mov esi, eax
test esi, esi
jl 0x10031c8c
mov eax, dword [ebp - 0x50]
test al, 0x40
jne 0x1003203b
test ah, ah
jns 0x10032043
mov ecx, 0x6750
mov word [edi], cx
mov dword [ebp - 4], 0xb
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x5c], edx
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x64]
push edx
mov esi, eax
call fcn.10016d30
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov dword [eax], 0
mov byte [ebp - 4], 0x2d
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x10032093
push eax
call fcn.1029f770
add esp, 4
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x100325c8
jmp 0x100320a6
mov edi, dword [ebp - 0x148]
movzx edx, word [edi + 6]
movzx ecx, word [edi + 2]
movzx eax, word [edi + 4]
push 0x104c2ef4
push 0x104c7ec8
push str.__line:
sub esp, 0x20
mov dword [ebp - 0x84], edx
movzx edx, word [edi]
mov dword [ebp - 0x68], ecx
mov ecx, esp
mov dword [ebp - 0x17c], esp
push str.._brom_boot_rom.cpp
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
call fcn.10003680
lea esi, [ebp - 0x174]
call fcn.100af830
add esp, 0x20
mov esi, eax
push 0x104c3ebc
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x2e
call fcn.10003680
push esi
push eax
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 4], 0x2f
call fcn.10016ef0
add esp, 0xc
push eax
lea ecx, [ebp - 0x144]
push ecx
mov byte [ebp - 4], 0x30
call fcn.10016fa0
add esp, 0xc
push eax
lea edx, [ebp - 0x124]
push edx
mov byte [ebp - 4], 0x31
call fcn.10016fa0
add esp, 0xc
push eax
lea eax, [ebp - 0xe4]
push eax
mov byte [ebp - 4], 0x32
call fcn.10016fa0
add esp, 0xc
mov esi, eax
push str.chip_id:_hw_code_0x_X__hw_sub_code_0x_X__hw_version_0x_X__sw_version_0x_X_
lea ecx, [ebp - 0x300]
push ecx
mov byte [ebp - 4], 0x33
call fcn.100167c0
mov byte [ebp - 4], 0x34
lea ecx, [ebp - 0x74]
lea edx, [ebp - 0x5c]
mov ebx, 0x100222b0
push ecx
mov edi, eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], fcn.100776d0
mov dword [ebp - 0x6c], ebx
call fcn.1001ec90
add esp, 4
lea ecx, [ebp - 0x1a4]
lea edx, [ebp - 0x68]
push ecx
mov edi, eax
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 0x1a0], fcn.100776d0
mov dword [ebp - 0x19c], ebx
call fcn.1001ec90
lea ecx, [ebp - 0x18c]
add esp, 4
lea edx, [ebp - 0x60]
push ecx
mov edi, eax
mov dword [ebp - 0x18c], edx
mov dword [ebp - 0x188], fcn.100776d0
mov dword [ebp - 0x184], ebx
call fcn.1001ec90
lea ecx, [ebp - 0x154]
add esp, 4
lea edx, [ebp - 0x84]
push ecx
mov edi, eax
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], fcn.100776d0
mov dword [ebp - 0x14c], ebx
call fcn.1001ec90
add esp, 4
lea edx, [ebp - 0xa4]
mov ecx, eax
call fcn.100168d0
mov edi, eax
mov byte [ebp - 4], 0x35
call fcn.1005c450
mov eax, dword [eax]
lea edx, [ebp - 0x48]
push edx
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.10016de0
add esp, 0xc
mov byte [ebp - 4], 0x36
mov ecx, dword [eax + 4]
mov ebx, dword [edi + 0x18]
add ecx, 4
cmp dword [edi + 0x1c], 0x10
jb 0x10032262
mov edi, dword [edi + 8]
jmp 0x10032265
add edi, 8
push edi
call fcn.10013de0
cmp dword [esi + 0x1c], 0x10
mov ebx, dword [esi + 0x18]
jb 0x10032279
mov esi, dword [esi + 8]
jmp 0x1003227c
add esi, 8
push esi
mov ecx, eax
call fcn.10013de0
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 0x35
call fcn.100132f0
mov edi, 0x10
mov byte [ebp - 4], 0x34
cmp dword [ebp - 0x88], edi
jb 0x100322b3
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.1025a370
add esp, 4
xor ebx, ebx
mov esi, 0xf
push 3
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
call fcn.10239250
mov ecx, dword [ebp - 0xa4]
cmp ecx, 0xfffffffd
je 0x10032305
lea eax, [ebp - 0xa4]
cmp ecx, ebx
je 0x100322ff
jmp 0x100322f0
mov edx, dword [eax]
mov dword [edx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
cmp edx, ebx
jne 0x100322f0
mov dword [ebp - 0xa4], ebx
lea ecx, [ebp - 0x54]
call fcn.10239290
lea eax, [ebp - 0x300]
push eax
mov byte [ebp - 4], 0x33
call fcn.1000b890
mov byte [ebp - 4], 0x32
cmp dword [ebp - 0xc8], edi
jb 0x10032338
mov ecx, dword [ebp - 0xdc]
push ecx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xcc], ebx
mov byte [ebp - 0xdc], bl
call fcn.10239250
mov ecx, dword [ebp - 0xe4]
cmp ecx, 0xfffffffd
je 0x10032385
lea eax, [ebp - 0xe4]
cmp ecx, ebx
je 0x1003237f
lea esp, [esp]
mov edx, dword [eax]
mov dword [edx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
cmp edx, ebx
jne 0x10032370
mov dword [ebp - 0xe4], ebx
lea ecx, [ebp - 0x4c]
call fcn.10239290
mov byte [ebp - 4], 0x31
cmp dword [ebp - 0x108], edi
jb 0x100323a8
mov eax, dword [ebp - 0x11c]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x10c], ebx
mov byte [ebp - 0x11c], bl
call fcn.10239250
mov ecx, dword [ebp - 0x124]
cmp ecx, 0xfffffffd
je 0x100323f5
lea eax, [ebp - 0x124]
cmp ecx, ebx
je 0x100323ef
lea esp, [esp]
mov ecx, dword [eax]
mov dword [ecx], ebx
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov dword [eax], ecx
cmp ecx, ebx
jne 0x100323e0
mov dword [ebp - 0x124], ebx
lea ecx, [ebp - 0x180]
call fcn.10239290
mov byte [ebp - 4], 0x30
cmp dword [ebp - 0x128], edi
jb 0x1003241b
mov edx, dword [ebp - 0x13c]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], ebx
mov byte [ebp - 0x13c], bl
call fcn.10239250
mov ecx, dword [ebp - 0x144]
cmp ecx, 0xfffffffd
je 0x10032465
lea eax, [ebp - 0x144]
cmp ecx, ebx
je 0x1003245f
nop
mov ecx, dword [eax]
mov dword [ecx], ebx
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov dword [eax], ecx
cmp ecx, ebx
jne 0x10032450
mov dword [ebp - 0x144], ebx
lea ecx, [ebp - 0x178]
call fcn.10239290
mov byte [ebp - 4], 0x2f
cmp dword [ebp - 0xe8], edi
jb 0x1003248b
mov edx, dword [ebp - 0xfc]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x78]
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xec], ebx
mov byte [ebp - 0xfc], bl
call fcn.10239250
mov ecx, dword [ebp - 0x104]
cmp ecx, 0xfffffffd
je 0x100324d5
lea eax, [ebp - 0x104]
cmp ecx, ebx
je 0x100324cf
lea esp, [esp]
mov ecx, dword [eax]
mov dword [ecx], ebx
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov dword [eax], ecx
cmp ecx, ebx
jne 0x100324c0
mov dword [ebp - 0x104], ebx
lea ecx, [ebp - 0x78]
call fcn.10239290
mov byte [ebp - 4], 0x2e
cmp dword [ebp - 0xa8], edi
jb 0x100324f8
mov edx, dword [ebp - 0xbc]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xac], ebx
mov byte [ebp - 0xbc], bl
call fcn.10239250
mov ecx, dword [ebp - 0xc4]
cmp ecx, 0xfffffffd
je 0x10032545
lea eax, [ebp - 0xc4]
cmp ecx, ebx
je 0x1003253f
lea esp, [esp]
mov ecx, dword [eax]
mov dword [ecx], ebx
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov dword [eax], ecx
cmp ecx, ebx
jne 0x10032530
mov dword [ebp - 0xc4], ebx
lea ecx, [ebp - 0x7c]
call fcn.10239290
mov byte [ebp - 4], 0x2d
cmp dword [ebp - 0x158], edi
jb 0x10032568
mov edx, dword [ebp - 0x16c]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 0x16c], bl
call fcn.10239250
mov ecx, dword [ebp - 0x174]
cmp ecx, 0xfffffffd
je 0x100325b5
lea eax, [ebp - 0x174]
cmp ecx, ebx
je 0x100325af
lea esp, [esp]
mov ecx, dword [eax]
mov dword [ecx], ebx
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov dword [eax], ecx
cmp ecx, ebx
jne 0x100325a0
mov dword [ebp - 0x174], ebx
lea ecx, [ebp - 0x58]
call fcn.10239290
mov eax, dword [ebp - 0x48]
cmp eax, ebx
jne 0x100320a0
mov byte [ebp - 4], 0xb
test eax, eax
je 0x100325e0
push eax
call fcn.1029f770
add esp, 4
mov dword [ebp - 0x48], 0
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.100542c0
xor eax, eax
jmp 0x100327d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.102595a0
mov esp, ebp
pop ebp
ret