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

Disassembly:
push 0xffffffffffffffff
push 0x10354510
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x10525930]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10525930]
xor eax, esp
push eax
lea eax, [esp + 0x33c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34c]
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x40], esp
push str.chip.mapping.cfg.xml
mov dword [esp + 0x48], ebp
call fcn.10003680
lea esi, [esp + 0x334]
call fcn.100778c0
push str.MT_04x
lea eax, [esp + 0x240]
xor ebx, ebx
push eax
mov dword [esp + 0x34c], ebx
call fcn.100167c0
mov byte [esp + 0x344], 1
lea ecx, [esp + 0x4c]
push ecx
mov edi, eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], fcn.100776d0
mov dword [esp + 0x58], 0x100405b0
call fcn.1001ec90
sub esp, 0x1c
mov edx, esp
mov ecx, eax
mov dword [esp + 0x40], esp
call fcn.100168d0
lea edx, [esp + 0x314]
push edx
mov ecx, esi
call fcn.10077950
lea eax, [esp + 0x23c]
push eax
mov byte [esp + 0x348], 3
call fcn.1000b890
cmp dword [esp + 0x30c], ebx
je 0x100518ee
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 2
mov dword [esp + 0x2c], ecx
call fcn.1005c450
mov eax, dword [eax]
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
push ecx
mov esi, eax
call fcn.10016d30
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov dword [eax], ebx
mov byte [esp + 0x344], 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100512c6
push eax
call fcn.1029f770
add esp, 4
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10051815
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x2f4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], fcn.100776d0
mov dword [esp + 0x54], 0x100222b0
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], fcn.100776d0
mov dword [esp + 0x128], 0x100224a0
mov edx, dword [esp + 0x24]
movzx eax, word [edx]
push 0x104c2ef4
push 0x104cb084
push str.__line:
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.._brom_chip_mapping.cpp
mov dword [esp + 0x5c], eax
call fcn.10003680
lea esi, [esp + 0x10c]
call fcn.100af830
add esp, 0x20
mov esi, eax
push 0x104c3ebc
lea ecx, [esp + 0x110]
mov byte [esp + 0x354], 5
call fcn.10003680
push esi
push eax
lea ecx, [esp + 0xd4]
push ecx
mov byte [esp + 0x35c], 6
call fcn.10016ef0
add esp, 0xc
push eax
lea edx, [esp + 0x90]
push edx
mov byte [esp + 0x358], 7
call fcn.10016fa0
add esp, 0xc
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x354], 8
call fcn.10016fa0
add esp, 0xc
push eax
lea ecx, [esp + 0x134]
push ecx
mov byte [esp + 0x350], 9
call fcn.10016fa0
add esp, 0xc
mov ebp, eax
push str.Chip_hw_code_revised_from_0x_x_to_0x_s.
lea edx, [esp + 0x188]
push edx
mov byte [esp + 0x34c], 0xa
call fcn.100167c0
lea ecx, [esp + 0x4c]
push ecx
mov edi, eax
mov byte [esp + 0x348], 0xb
call fcn.1001ec90
lea edx, [esp + 0x124]
add esp, 4
push edx
mov edi, eax
call fcn.1001ec90
add esp, 4
lea edx, [esp + 0xa0]
mov ecx, eax
call fcn.100168d0
mov esi, eax
mov byte [esp + 0x344], 0xc
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x174]
push edx
call fcn.10016de0
add esp, 0xc
mov byte [esp + 0x344], 0xd
mov ecx, dword [eax + 4]
mov ebx, dword [esi + 0x18]
add ecx, 4
cmp dword [esi + 0x1c], 0x10
jb 0x1005145d
mov esi, dword [esi + 8]
jmp 0x10051460
add esi, 8
push esi
call fcn.10013de0
cmp dword [ebp + 0x1c], 0x10
mov ebx, dword [ebp + 0x18]
jb 0x10051474
mov ebp, dword [ebp + 8]
jmp 0x10051477
add ebp, 8
push ebp
mov ecx, eax
call fcn.10013de0
lea ecx, [esp + 0x16c]
mov byte [esp + 0x344], 0xc
call fcn.100132f0
mov edi, 0x10
mov byte [esp + 0x344], 0xb
cmp dword [esp + 0xbc], edi
jb 0x100514b9
mov eax, dword [esp + 0xa8]
push eax
call fcn.1025a370
add esp, 4
xor ebx, ebx
mov esi, 0xf
push 3
lea ecx, [esp + 0x3c]
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
call fcn.10239250
mov eax, dword [esp + 0xa0]
cmp eax, 0xfffffffd
je 0x1005150e
cmp eax, ebx
je 0x10051507
mov dword [eax], ebx
mov ecx, dword [esp + 0xa0]
mov eax, dword [ecx + 4]
mov dword [esp + 0xa0], eax
cmp eax, ebx
jne 0x100514f0
mov dword [esp + 0xa0], ebx
lea ecx, [esp + 0x38]
call fcn.10239290
lea edx, [esp + 0x184]
push edx
mov byte [esp + 0x348], 0xa
call fcn.1000b890
mov byte [esp + 0x344], 9
cmp dword [esp + 0x148], edi
jb 0x1005154d
mov eax, dword [esp + 0x134]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x44]
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
call fcn.10239250
mov eax, dword [esp + 0x12c]
cmp eax, 0xfffffffd
je 0x1005159e
cmp eax, ebx
je 0x10051597
lea ecx, [ecx]
mov dword [eax], ebx
mov ecx, dword [esp + 0x12c]
mov eax, dword [ecx + 4]
mov dword [esp + 0x12c], eax
cmp eax, ebx
jne 0x10051580
mov dword [esp + 0x12c], ebx
lea ecx, [esp + 0x40]
call fcn.10239290
mov byte [esp + 0x344], 8
cmp dword [esp + 0x7c], edi
jb 0x100515c2
mov edx, dword [esp + 0x68]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x40]
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.10239250
mov eax, dword [esp + 0x60]
cmp eax, 0xfffffffd
je 0x10051605
cmp eax, ebx
je 0x10051601
lea esp, [esp]
mov dword [eax], ebx
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
mov dword [esp + 0x60], eax
cmp eax, ebx
jne 0x100515f0
mov dword [esp + 0x60], ebx
lea ecx, [esp + 0x3c]
call fcn.10239290
mov byte [esp + 0x344], 7
cmp dword [esp + 0x9c], edi
jb 0x1005162f
mov ecx, dword [esp + 0x88]
push ecx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
call fcn.10239250
mov eax, dword [esp + 0x80]
cmp eax, 0xfffffffd
je 0x1005167e
cmp eax, ebx
je 0x10051677
nop
mov dword [eax], ebx
mov edx, dword [esp + 0x80]
mov eax, dword [edx + 4]
mov dword [esp + 0x80], eax
cmp eax, ebx
jne 0x10051660
mov dword [esp + 0x80], ebx
lea ecx, [esp + 0x48]
call fcn.10239290
mov byte [esp + 0x344], 6
cmp dword [esp + 0xdc], edi
jb 0x100516a8
mov eax, dword [esp + 0xc8]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x38]
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
call fcn.10239250
mov eax, dword [esp + 0xc0]
cmp eax, 0xfffffffd
je 0x100516fe
cmp eax, ebx
je 0x100516f7
jmp 0x100516e0
mov dword [eax], ebx
mov ecx, dword [esp + 0xc0]
mov eax, dword [ecx + 4]
mov dword [esp + 0xc0], eax
cmp eax, ebx
jne 0x100516e0
mov dword [esp + 0xc0], ebx
lea ecx, [esp + 0x34]
call fcn.10239290
mov byte [esp + 0x344], 5
cmp dword [esp + 0x11c], edi
jb 0x10051728
mov edx, dword [esp + 0x108]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x34]
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
call fcn.10239250
mov eax, dword [esp + 0x100]
cmp eax, 0xfffffffd
je 0x1005177e
cmp eax, ebx
je 0x10051777
jmp 0x10051760
mov dword [eax], ebx
mov eax, dword [esp + 0x100]
mov eax, dword [eax + 4]
mov dword [esp + 0x100], eax
cmp eax, ebx
jne 0x10051760
mov dword [esp + 0x100], ebx
lea ecx, [esp + 0x30]
call fcn.10239290
mov byte [esp + 0x344], 4
cmp dword [esp + 0xfc], edi
jb 0x100517a8
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
call fcn.10239250
mov eax, dword [esp + 0xe0]
cmp eax, 0xfffffffd
je 0x100517fe
cmp eax, ebx
je 0x100517f7
jmp 0x100517e0
mov dword [eax], ebx
mov edx, dword [esp + 0xe0]
mov eax, dword [edx + 4]
mov dword [esp + 0xe0], eax
cmp eax, ebx
jne 0x100517e0
mov dword [esp + 0xe0], ebx
lea ecx, [esp + 0x28]
call fcn.10239290
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x1005130e
xor ebx, ebx
mov byte [esp + 0x344], 3
cmp eax, ebx
je 0x1005182e
push eax
call fcn.1029f770
add esp, 4
mov dword [esp + 0x1c], ebx
sub esp, 0x20
lea eax, [esp + 0x314]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.10003720
call fcn.10054620
mov ecx, dword [esp + 0x44]
add esp, 0x20
mov dword [esp + 0x50], edx
mov word [ecx], ax
mov esi, 0x10
mov byte [esp + 0x344], bl
cmp dword [esp + 0x310], esi
jb 0x1005187c
mov edx, dword [esp + 0x2fc]
push edx
call fcn.1025a370
add esp, 4
mov edi, 0xf
lea ecx, [esp + 0x2f4]
mov dword [esp + 0x310], edi
mov dword [esp + 0x30c], ebx
mov byte [esp + 0x2fc], bl
call fcn.10001370
mov dword [esp + 0x344], 0xffffffff
cmp dword [esp + 0x330], esi
jb 0x100518c6
mov eax, dword [esp + 0x31c]
push eax
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0x314]
mov dword [esp + 0x330], edi
mov dword [esp + 0x32c], ebx
mov byte [esp + 0x31c], bl
call fcn.10001370
mov al, 1
jmp 0x10052302
xor eax, eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
lea ecx, [esp + 0xa4]
and eax, 1
mov edx, ecx
and eax, 0xfffffffe
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], ebx
lea esi, [esp + 0xa0]
mov byte [esp + 0x344], 0xe
call fcn.10050350
push ebp
lea eax, [esp + 0x24]
mov edx, esi
call fcn.100536e0
lea ecx, [esp + 0xa4]
cmp dword [eax], ecx
je 0x10051f58
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 2
mov dword [esp + 0x30], edx
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x1c]
push edx
mov esi, eax
call fcn.10016d30
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [eax], ebx
mov byte [esp + 0x344], 0xf
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100519a5
push eax
call fcn.1029f770
add esp, 4
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10051f15
lea edx, [esp + 0x34]
mov dword [esp + 0x120], edx
mov ecx, fcn.100776d0
mov eax, 0x100222b0
lea edx, [esp + 0x30]
mov dword [esp + 0x124], ecx
mov dword [esp + 0x128], eax
mov dword [esp + 0x16c], edx
mov dword [esp + 0x170], ecx
mov dword [esp + 0x174], eax
lea ecx, [ecx]
mov edi, dword [esp + 0x24]
lea eax, [esp + 0xa0]
call fcn.10053670
movzx ecx, word [edi]
movzx eax, word [eax]
push 0x104c2ef4
push 0x104cb0c8
push str.__line:
sub esp, 0x20
mov dword [esp + 0x60], ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push str.._brom_chip_mapping.cpp
mov dword [esp + 0x60], eax
call fcn.10003680
lea esi, [esp + 0x178]
call fcn.100af830
add esp, 0x20
mov esi, eax
mov ebx, 0x10
push 0x104c3ebc
lea ecx, [esp + 0x13c]
mov byte [esp + 0x354], bl
call fcn.10003680
push esi
push eax
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x35c], 0x11
call fcn.10016ef0
add esp, 0xc
push eax
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x358], 0x12
call fcn.10016fa0
add esp, 0xc
push eax
lea ecx, [esp + 0xcc]
push ecx
mov byte [esp + 0x354], 0x13
call fcn.10016fa0
add esp, 0xc
push eax
lea edx, [esp + 0x108]
push edx
mov byte [esp + 0x350], 0x14
call fcn.10016fa0
add esp, 0xc
mov ebp, eax
push str.Chip_hw_code_revised_from_0x_x_to_0x_x.
lea eax, [esp + 0x188]
push eax
mov byte [esp + 0x34c], 0x15
call fcn.100167c0
lea ecx, [esp + 0x120]
push ecx
mov edi, eax
mov byte [esp + 0x348], 0x16
call fcn.1001ec90
lea edx, [esp + 0x170]
add esp, 4
push edx
mov edi, eax
call fcn.1001ec90
add esp, 4
lea edx, [esp + 0xe0]
mov ecx, eax
call fcn.100168d0
mov esi, eax
mov byte [esp + 0x344], 0x17
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x180]
push edx
call fcn.10016de0
add esp, 0xc
mov byte [esp + 0x344], 0x18
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x18]
add ecx, 4
cmp dword [esi + 0x1c], ebx
jb 0x10051b58
mov esi, dword [esi + 8]
jmp 0x10051b5b
add esi, 8
push esi
mov ebx, eax
call fcn.10013de0
cmp dword [ebp + 0x1c], 0x10
mov ebx, dword [ebp + 0x18]
jb 0x10051b71
mov ebp, dword [ebp + 8]
jmp 0x10051b74
add ebp, 8
push ebp
mov ecx, eax
call fcn.10013de0
lea ecx, [esp + 0x178]
mov byte [esp + 0x344], 0x17
call fcn.100132f0
mov edi, 0x10
mov byte [esp + 0x344], 0x16
cmp dword [esp + 0xfc], edi
jb 0x10051bb6
mov eax, dword [esp + 0xe8]
push eax
call fcn.1025a370
add esp, 4
xor ebx, ebx
mov esi, 0xf
push 3
lea ecx, [esp + 0x4c]
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
call fcn.10239250
mov eax, dword [esp + 0xe0]
cmp eax, 0xfffffffd
je 0x10051c0e
cmp eax, ebx
je 0x10051c07
lea ecx, [ecx]
mov dword [eax], ebx
mov ecx, dword [esp + 0xe0]
mov eax, dword [ecx + 4]
mov dword [esp + 0xe0], eax
cmp eax, ebx
jne 0x10051bf0
mov dword [esp + 0xe0], ebx
lea ecx, [esp + 0x48]
call fcn.10239290
lea edx, [esp + 0x184]
push edx
mov byte [esp + 0x348], 0x15
call fcn.1000b890
mov byte [esp + 0x344], 0x14
cmp dword [esp + 0x11c], edi
jb 0x10051c4d
mov eax, dword [esp + 0x108]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x40]
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
call fcn.10239250
mov eax, dword [esp + 0x100]
cmp eax, 0xfffffffd
je 0x10051c9e
cmp eax, ebx
je 0x10051c97
lea ecx, [ecx]
mov dword [eax], ebx
mov ecx, dword [esp + 0x100]
mov eax, dword [ecx + 4]
mov dword [esp + 0x100], eax
cmp eax, ebx
jne 0x10051c80
mov dword [esp + 0x100], ebx
lea ecx, [esp + 0x3c]
call fcn.10239290
mov byte [esp + 0x344], 0x13
cmp dword [esp + 0xdc], edi
jb 0x10051cc8
mov edx, dword [esp + 0xc8]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x44]
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
call fcn.10239250
mov eax, dword [esp + 0xc0]
cmp eax, 0xfffffffd
je 0x10051d1e
cmp eax, ebx
je 0x10051d17
jmp 0x10051d00
mov dword [eax], ebx
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 4]
mov dword [esp + 0xc0], eax
cmp eax, ebx
jne 0x10051d00
mov dword [esp + 0xc0], ebx
lea ecx, [esp + 0x40]
call fcn.10239290
mov byte [esp + 0x344], 0x12
cmp dword [esp + 0x9c], edi
jb 0x10051d48
mov ecx, dword [esp + 0x88]
push ecx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x3c]
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
call fcn.10239250
mov eax, dword [esp + 0x80]
cmp eax, 0xfffffffd
je 0x10051d9e
cmp eax, ebx
je 0x10051d97
jmp 0x10051d80
mov dword [eax], ebx
mov edx, dword [esp + 0x80]
mov eax, dword [edx + 4]
mov dword [esp + 0x80], eax
cmp eax, ebx
jne 0x10051d80
mov dword [esp + 0x80], ebx
lea ecx, [esp + 0x38]
call fcn.10239290
mov byte [esp + 0x344], 0x11
cmp dword [esp + 0x7c], edi
jb 0x10051dc2
mov eax, dword [esp + 0x68]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x30]
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.10239250
mov eax, dword [esp + 0x60]
cmp eax, 0xfffffffd
je 0x10051e05
cmp eax, ebx
je 0x10051e01
lea esp, [esp]
mov dword [eax], ebx
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + 4]
mov dword [esp + 0x60], eax
cmp eax, ebx
jne 0x10051df0
mov dword [esp + 0x60], ebx
lea ecx, [esp + 0x2c]
call fcn.10239290
mov byte [esp + 0x344], 0x10
cmp dword [esp + 0x148], edi
jb 0x10051e2f
mov edx, dword [esp + 0x134]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x48]
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
call fcn.10239250
mov eax, dword [esp + 0x12c]
cmp eax, 0xfffffffd
je 0x10051e7e
cmp eax, ebx
je 0x10051e77
nop
mov dword [eax], ebx
mov eax, dword [esp + 0x12c]
mov eax, dword [eax + 4]
mov dword [esp + 0x12c], eax
cmp eax, ebx
jne 0x10051e60
mov dword [esp + 0x12c], ebx
lea ecx, [esp + 0x44]
call fcn.10239290
mov byte [esp + 0x344], 0xf
cmp dword [esp + 0x168], edi
jb 0x10051ea8
mov ecx, dword [esp + 0x154]
push ecx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x24]
mov dword [esp + 0x16c], esi
mov dword [esp + 0x168], ebx
mov byte [esp + 0x158], bl
call fcn.10239250
mov eax, dword [esp + 0x14c]
cmp eax, 0xfffffffd
je 0x10051efe
cmp eax, ebx
je 0x10051ef7
jmp 0x10051ee0
mov dword [eax], ebx
mov edx, dword [esp + 0x14c]
mov eax, dword [edx + 4]
mov dword [esp + 0x14c], eax
cmp eax, ebx
jne 0x10051ee0
mov dword [esp + 0x14c], ebx
lea ecx, [esp + 0x20]
call fcn.10239290
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x100519f0
xor ebx, ebx
mov byte [esp + 0x344], 0xe
cmp eax, ebx
je 0x10051f2e
push eax
call fcn.1029f770
add esp, 4
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x24]
lea eax, [esp + 0xa0]
call fcn.10053670
mov ax, word [eax]
lea ecx, [esp + 0xa0]
mov word [edi], ax
push ecx
mov edi, ecx
call fcn.100539a0
jmp 0x10051857
lea ecx, [esp + 0xa0]
push ecx
mov edi, ecx
mov byte [esp + 0x348], 3
call fcn.100539a0
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 2
mov dword [esp + 0x28], edx
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
mov esi, eax
call fcn.10016d30
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov dword [eax], ebx
mov byte [esp + 0x344], 0x19
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x10051fbc
push eax
call fcn.1029f770
add esp, 4
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100522bd
jmp 0x10051fd0
push 0x104c2ef4
push 0x104cb0f4
push str.__line:
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x78], esp
push str.._brom_chip_mapping.cpp
call fcn.10003680
lea esi, [esp + 0x8c]
call fcn.100af830
add esp, 0x20
mov esi, eax
push 0x104c3ebc
lea ecx, [esp + 0x90]
mov byte [esp + 0x354], 0x1a
call fcn.10003680
push esi
push eax
lea edx, [esp + 0xd4]
push edx
mov byte [esp + 0x35c], 0x1b
call fcn.10016ef0
add esp, 0xc
push eax
lea eax, [esp + 0x110]
push eax
mov byte [esp + 0x358], 0x1c
call fcn.10016fa0
add esp, 0xc
push eax
lea ecx, [esp + 0xec]
push ecx
mov byte [esp + 0x354], 0x1d
call fcn.10016fa0
add esp, 0xc
push eax
lea edx, [esp + 0x154]
push edx
mov byte [esp + 0x350], 0x1e
call fcn.10016fa0
add esp, 0xc
mov esi, eax
mov byte [esp + 0x344], 0x1f
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x180]
push edx
call fcn.10016de0
add esp, 0xc
mov byte [esp + 0x344], 0x20
mov ecx, dword [eax + 4]
add ecx, 4
push str.Chip_hw_code_is_intact.
mov ebx, 0x17
call fcn.10013de0
cmp dword [esi + 0x1c], 0x10
mov ebx, dword [esi + 0x18]
jb 0x100520d3
mov esi, dword [esi + 8]
jmp 0x100520d6
add esi, 8
push esi
mov ecx, eax
call fcn.10013de0
lea ecx, [esp + 0x178]
mov byte [esp + 0x344], 0x1f
call fcn.100132f0
mov edi, 0x10
mov byte [esp + 0x344], 0x1e
cmp dword [esp + 0x168], edi
jb 0x10052118
mov eax, dword [esp + 0x154]
push eax
call fcn.1025a370
add esp, 4
xor ebx, ebx
mov esi, 0xf
push 3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x16c], esi
mov dword [esp + 0x168], ebx
mov byte [esp + 0x158], bl
call fcn.10239250
mov eax, dword [esp + 0x14c]
cmp eax, 0xfffffffd
je 0x1005216e
cmp eax, ebx
je 0x10052167
nop
mov dword [eax], ebx
mov ecx, dword [esp + 0x14c]
mov eax, dword [ecx + 4]
mov dword [esp + 0x14c], eax
cmp eax, ebx
jne 0x10052150
mov dword [esp + 0x14c], ebx
lea ecx, [esp + 0x28]
call fcn.10239290
mov byte [esp + 0x344], 0x1d
cmp dword [esp + 0xfc], edi
jb 0x10052198
mov edx, dword [esp + 0xe8]
push edx
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0xe0]
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
call fcn.10001370
mov byte [esp + 0x344], 0x1c
cmp dword [esp + 0x11c], edi
jb 0x100521da
mov eax, dword [esp + 0x108]
push eax
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0x100]
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
call fcn.10001370
mov byte [esp + 0x344], 0x1b
cmp dword [esp + 0xdc], edi
jb 0x1005221c
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0xc0]
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
call fcn.10001370
mov byte [esp + 0x344], 0x1a
cmp dword [esp + 0x9c], edi
jb 0x1005225e
mov edx, dword [esp + 0x88]
push edx
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0x80]
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
call fcn.10001370
mov byte [esp + 0x344], 0x19
cmp dword [esp + 0x7c], edi
jb 0x1005229a
mov eax, dword [esp + 0x68]
push eax
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.10001370
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x10051fd0
xor ebx, ebx
mov byte [esp + 0x344], 3
cmp eax, ebx
je 0x100522d6
push eax
call fcn.1029f770
add esp, 4
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x2f4]
mov byte [esp + 0x344], bl
call fcn.10003790
lea esi, [esp + 0x314]
mov dword [esp + 0x344], 0xffffffff
call fcn.10052330
xor al, al
mov ecx, dword [esp + 0x33c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.102595a0
add esp, 0x334
ret