Function at 0x402770
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e026
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x591a60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jne 0x402f7b
push eax
lea ecx, [edi + 0x190]
push 0x56a1ae
call fcn.00403ce0
mov eax, dword [edi + 8]
push eax
push 0
call dword [sym.imp.dtccm2.dll_SetSoftPinPullUp]
push 0x27
lea ecx, [ebp - 0x37]
push 0
push ecx
call fcn.00518800
add esp, 0x14
cmp byte [edi + 0x7b], 0
mov ebx, 1
mov dword [ebp - 0x34], 0x6050403
mov dword [ebp - 0x30], 0x14090807
mov dword [ebp - 0x2c], 0x140c0b0a
jne 0x402815
mov dword [ebp - 0x38], 0x1020014
mov dword [ebp - 0x28], 0xe0f0d14
mov dword [ebp - 0x24], 0x10141213
mov word [ebp - 0x20], 0x1414
jmp 0x402830
mov dword [ebp - 0x38], 0x1020010
mov dword [ebp - 0x28], 0x14141414
mov dword [ebp - 0x24], 0xf0e140d
mov word [ebp - 0x20], 0x1312
mov edx, dword [edi + 8]
push edx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.dtccm2.dll_SetSoftPin]
mov ecx, dword [edi + 8]
push ecx
push ebx
call dword [sym.imp.dtccm2.dll_EnableSoftPin]
mov edx, dword [edi + 8]
push edx
push ebx
call dword [sym.imp.dtccm2.dll_EnableGpio]
mov eax, dword [edi + 8]
movzx ecx, byte [edi + 0x15]
push eax
push ebx
push ecx
call dword [sym.imp.dtccm2.dll_SensorEnable]
add esp, 0x24
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
fld dword [edi + 0x170]
mov dword [ebp - 0x9c], 0
fld qword [0x56c150]
fmul st(1), st(0)
fxch st(1)
call fcn.0051c210
fld dword [edi + 0x174]
fmul st(1)
mov esi, 0x12c
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xec], esi
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x98], ebx
call fcn.0051c210
fld dword [edi + 0x178]
fmul st(1)
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x94], 2
call fcn.0051c210
fmul dword [edi + 0x17c]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x90], 3
call fcn.0051c210
mov edx, dword [edi + 8]
mov dword [ebp - 0xb8], eax
xor eax, eax
push edx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x64], eax
push 5
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x8c], 4
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x104], esi
call dword [sym.imp.dtccm2.dll_PmuSetOcpCurrentLimit]
mov edx, dword [edi + 8]
push edx
push 5
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.dtccm2.dll_PmuSetVoltage]
add esp, 0x20
cmp eax, ebx
je 0x4029b5
push 0
push 0
push str.Set_Voltage_Failed_
call fcn.00418898
xor eax, eax
jmp 0x403329
mov edx, dword [edi + 8]
push edx
call dword [sym.imp.dtccm2.dll_GetKitType]
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ebx
cmp eax, 0x10
je 0x402a58
mov eax, dword [edi + 8]
push eax
push 5
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.dtccm2.dll_PmuSetOnOff]
add esp, 0x10
cmp eax, ebx
je 0x402a07
push 0
push 0
push str.Open_Voltage_Failed_
call fcn.00418898
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
cmp dword [ebp - 0x11c], 0x10
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], ebx
je 0x402a64
mov eax, dword [edi + 8]
push eax
push 5
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.dtccm2.dll_PmuSetOnOff]
add esp, 0x10
cmp eax, ebx
je 0x402a68
push 0
push 0
push str.Open_Voltage_Failed_
call fcn.00418898
jmp 0x402a68
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
jmp 0x402a0d
push 0xa
call esi
push 0x64
call esi
cmp dword [ebp - 0x11c], 0x10
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
je 0x402ae3
mov eax, dword [edi + 8]
push eax
push 5
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.dtccm2.dll_PmuSetOnOff]
add esp, 0x10
cmp eax, ebx
je 0x402aad
push 0
push 0
push str.Open_Voltage_Failed_
call fcn.00418898
mov eax, dword [edi + 8]
push eax
push 5
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.dtccm2.dll_PmuSetCurrentRange]
mov eax, dword [edi + 8]
push eax
push 5
lea ecx, [ebp - 0xec]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.dtccm2.dll_PmuSetOcpCurrentLimit]
add esp, 0x20
jmp 0x402ae7
push 0xa
call esi
mov eax, dword [edi + 8]
fild dword [edi + 0x74]
push eax
fnstcw word [ebp - 0x116]
movzx eax, word [ebp - 0x116]
fstp dword [ebp - 0x124]
fld dword [ebp - 0x124]
or eax, 0xc00
fmul qword [0x56c178]
mov dword [ebp - 0x124], eax
fldcw word [ebp - 0x124]
fistp dword [ebp - 0x124]
mov cx, word [ebp - 0x124]
movzx edx, cx
push edx
fldcw word [ebp - 0x116]
push ebx
call dword [sym.imp.dtccm2.dll_SetSensorClock]
add esp, 0xc
cmp eax, ebx
je 0x402b58
push 0
push 0
push str.Set_Mclk_Failed_
call fcn.00418898
xor eax, eax
jmp 0x403329
mov eax, dword [edi + 8]
push eax
push ebx
call dword [sym.imp.dtccm2.dll_SetSoftPinPullUp]
mov ecx, dword [edi + 8]
push ecx
push 0
call dword [sym.imp.dtccm2.dll_SetSensorI2cRate]
mov edx, dword [edi + 8]
push edx
push 0
call dword [sym.imp.dtccm2.dll_SetSensorI2cRapid]
mov eax, dword [edi + 8]
push eax
push 0
call dword [sym.imp.dtccm2.dll_SetI2CInterval]
mov ecx, dword [edi + 8]
movzx edx, byte [edi + 0x15]
push ecx
push ebx
push edx
call dword [sym.imp.dtccm2.dll_SensorEnable]
mov cl, byte [edi + 0x15]
mov eax, dword [edi + 8]
xor cl, 2
push eax
movzx edx, cl
push ebx
push edx
call dword [sym.imp.dtccm2.dll_SensorEnable]
add esp, 0x38
push 0x14
call esi
mov eax, dword [edi + 8]
movzx ecx, byte [edi + 0x15]
push eax
push ebx
push ecx
call dword [sym.imp.dtccm2.dll_SensorEnable]
add esp, 0xc
push 0x1e
call esi
mov edx, dword [edi + 8]
push edx
push 0
lea eax, [edi + 0x10]
push ebx
push eax
call dword [sym.imp.dtccm2.dll_SensorIsMe]
add esp, 0x10
cmp eax, ebx
je 0x402bfa
cmp dword [edi + 0xb50], ebx
jne 0x402bfa
push str.Find_Sensor_Failed_
lea ecx, [edi + 0x190]
call fcn.00403dc0
call fcn.004199ce
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402c14
push 0x80004005
call fcn.00401570
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
xor esi, esi
xor ecx, ecx
mov dword [ebp - 4], esi
cmp cx, word [edi + 0x68]
jae 0x402dd1
jmp 0x402c40
mov edx, dword [edi + 0x64]
movzx ecx, word [edx + esi*2]
lea eax, [edx + esi*2]
mov edx, 0xffff
cmp cx, dx
je 0x402db7
mov edx, 0xff
cmp cx, dx
je 0x402db7
movzx edx, byte [edi + 0x17]
movzx eax, word [eax + 2]
push 0
push edx
push eax
push ecx
movzx ecx, byte [edi + 0x16]
push ecx
call dword [sym.imp.dtccm2.dll_WriteSensorReg]
add esp, 0x14
cmp esi, 3
jle 0x402dc2
cmp dword [edi + 0xb50], 1
jne 0x402dc2
mov edx, dword [edi + 0x64]
movzx ecx, byte [edi + 0x17]
lea eax, [edx + esi*2]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push 0
push ecx
movzx ecx, byte [edi + 0x16]
push edx
push eax
push ecx
call dword [sym.imp.dtccm2.dll_WriteSensorReg]
movzx edx, byte [edi + 0x17]
mov ecx, dword [edi + 0x64]
xor ebx, ebx
push ebx
push edx
movzx edx, word [ecx + esi*2]
lea eax, [ebp - 0x118]
push eax
movzx eax, byte [edi + 0x16]
push edx
push eax
call dword [sym.imp.dtccm2.dll_ReadSensorReg]
mov ecx, dword [edi + 0x64]
mov ax, word [ebp - 0x118]
add esp, 0x28
cmp ax, word [ecx + esi*2 + 2]
je 0x402d5a
mov edi, edi
cmp ebx, 0xc8
jge 0x402d5a
mov edx, dword [edi + 0x64]
movzx ecx, byte [edi + 0x17]
lea eax, [edx + esi*2]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push 0
push ecx
movzx ecx, byte [edi + 0x16]
push edx
push eax
push ecx
call dword [sym.imp.dtccm2.dll_WriteSensorReg]
add esp, 0x14
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx edx, byte [edi + 0x17]
mov ecx, dword [edi + 0x64]
push 0
push edx
movzx edx, word [ecx + esi*2]
lea eax, [ebp - 0x118]
push eax
movzx eax, byte [edi + 0x16]
push edx
push eax
call dword [sym.imp.dtccm2.dll_ReadSensorReg]
mov ecx, dword [edi + 0x64]
mov ax, word [ebp - 0x118]
add esp, 0x14
inc ebx
cmp ax, word [ecx + esi*2 + 2]
jne 0x402cf0
mov edx, dword [edi + 0x64]
cmp ax, word [edx + esi*2 + 2]
lea ecx, [edx + esi*2]
je 0x402dc2
movzx eax, word [ecx]
push eax
lea ecx, [ebp - 0x11c]
push str.0x_x
push ecx
call fcn.00401640
add esp, 0xc
push str.Init_Sensor_Failed_
lea ecx, [edi + 0x190]
call fcn.00403dc0
push 0x56a1ac
lea ecx, [edi + 0x190]
call fcn.00403a10
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [edi + 0x190]
call fcn.00403910
jmp 0x402dc2
movzx edx, word [eax + 2]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, word [edi + 0x68]
add esi, 2
cmp esi, eax
jl 0x402c40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402dfa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 8]
push ecx
push 2
lea edx, [ebp - 0x128]
push edx
push 0x80
xor esi, esi
push 0xba
mov dword [ebp - 0x128], esi
call dword [sym.imp.dtccm2.dll_ReadSensorReg]
mov eax, 0x5150
add esp, 0x14
cmp word [ebp - 0x128], ax
jne 0x402e35
mov esi, 1
mov al, byte [edi + 0x14]
cmp al, 2
je 0x402e55
cmp al, 5
je 0x402e55
cmp al, 8
je 0x402e55
mov ecx, dword [edi + 8]
movzx edx, byte [edi + 0x72]
push ecx
push edx
call dword [sym.imp.dtccm2.dll_SetRawFormat]
jmp 0x402e64
mov eax, dword [edi + 8]
movzx ecx, byte [edi + 0x72]
push eax
push ecx
call dword [sym.imp.dtccm2.dll_SetYUV422Format]
mov edx, dword [edi + 8]
movzx eax, word [edi + 0x12]
movzx ecx, word [edi + 0x10]
add esp, 8
push edx
movzx edx, byte [edi + 0x7b]
push eax
push ecx
push edx
call dword [sym.imp.dtccm2.dll_SetSensorPort]
movzx eax, word [edi + 0x12]
add esp, 0x10
test esi, esi
je 0x402e8d
shr eax, 1
mov ecx, dword [edi + 8]
movzx edx, byte [edi + 0x14]
push ecx
push 1
push edx
push 1
push 1
push 0
push 0
push eax
movzx eax, word [edi + 0x10]
push eax
push 0
push 0
call dword [sym.imp.dtccm2.dll_InitRoi]
mov ecx, dword [edi + 8]
push ecx
push 0
call dword [sym.imp.dtccm2.dll_SetMipiClkPhase]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x34
push 0xa
call ebx
mov edx, dword [edi + 8]
push edx
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.dtccm2.dll_CalculateGrabSize]
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.dtccm2.dll_OpenVideo]
mov eax, dword [edi]
add esp, 0x10
test eax, eax
je 0x402ef0
mov eax, dword [eax + 0x20]
mov edx, dword [edi + 8]
movzx ecx, word [edi + 0x12]
push edx
movzx edx, word [edi + 0x10]
push 0
push 1
push 0
push ecx
push edx
push eax
call dword [sym.imp.dtccm2.dll_InitDisplay]
add esp, 0x1c
push 0x64
call ebx
mov eax, dword [edi + 8]
movzx ecx, word [edi + 0x12]
movzx edx, word [edi + 0x10]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.dtccm2.dll_InitIsp]
add esp, 0x14
push 0x64
call ebx
mov eax, dword [edi + 8]
push eax
push 0x64
call dword [sym.imp.dtccm2.dll_SetGamma]
push 0
push 0x64
call dword [sym.imp.dtccm2.dll_SetContrast]
mov ecx, dword [edi + 8]
push ecx
push 0x80
call dword [sym.imp.dtccm2.dll_SetSaturation]
fld1
mov edx, dword [edi + 8]
add esp, 0x18
push edx
sub esp, 0xc
fst dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
call dword [sym.imp.dtccm2.dll_SetDigitalGain]
add esp, 0x10
jmp 0x403324
cmp eax, 1
jne 0x403316
call fcn.004023b0
mov bx, word [edi + 0x12]
push 1
call fcn.00403410
cmp byte [edi + 0x14], 2
push 2
jne 0x402fa5
movzx ebx, word [edi + 0x10]
add bx, bx
jmp 0x402fa9
mov bx, word [edi + 0x10]
call fcn.00403410
call fcn.004199ce
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402fc8
push 0x80004005
call fcn.00401570
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
mov dword [ebp - 4], 1
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x118], esi
cmp cx, word [edi + 0x68]
jae 0x403237
mov edx, dword [edi + 0x64]
movzx ecx, word [edx + esi*2]
lea eax, [edx + esi*2]
mov edx, 0xffff
cmp cx, dx
je 0x403217
mov edx, 0xff
cmp cx, dx
je 0x403217
movzx ebx, word [eax + 2]
mov dl, byte [edi + 0x17]
mov eax, ecx
mov cl, byte [edi + 0x16]
mov byte [ebp - 0x128], cl
mov ecx, dword [edi + 4]
mov byte [ebp - 0x138], dl
test ecx, ecx
jne 0x403059
mov edx, dword [edi + 8]
mov ecx, dword [ebp - 0x138]
push edx
mov edx, dword [ebp - 0x128]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.dtccm2.dll_WriteSensorReg]
add esp, 0x14
jmp 0x40306e
cmp ecx, 1
jne 0x403073
push ecx
push 2
push eax
mov eax, dword [ebp - 0x128]
push eax
call fcn.00403530
cmp eax, 1
je 0x4030dd
movzx ecx, byte [edi + 0x17]
mov edx, dword [edi + 0x64]
movzx ebx, word [edx + esi*2 + 2]
mov byte [ebp - 0x130], cl
movzx ecx, byte [edi + 0x16]
lea eax, [edx + esi*2]
movzx eax, word [eax]
mov byte [ebp - 0x12c], cl
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x4030bb
mov edx, dword [edi + 8]
mov ecx, dword [ebp - 0x130]
push edx
mov edx, dword [ebp - 0x12c]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.dtccm2.dll_WriteSensorReg]
add esp, 0x14
jmp 0x4030d4
cmp ecx, 1
jne 0x40329f
push ecx
push 2
push eax
mov eax, dword [ebp - 0x12c]
push eax
call fcn.00403530
cmp eax, 1
jne 0x40329f
mov al, byte [edi + 0x16]
mov cl, byte [edi + 0x17]
mov edx, dword [edi + 0x64]
mov byte [ebp - 0x124], al
mov eax, dword [edi + 4]
mov byte [ebp - 0x134], cl
movzx ecx, word [edx + esi*2]
test eax, eax
jne 0x403122
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x134]
push edx
push eax
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
push edx
push ecx
push eax
call dword [sym.imp.dtccm2.dll_ReadSensorReg]
add esp, 0x14
jmp 0x403142
cmp eax, 1
jne 0x403142
push eax
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
push edx
push eax
mov eax, 2
mov edx, edi
call fcn.00403660
mov ecx, dword [edi + 0x64]
mov dx, word [ebp - 0x120]
cmp dx, word [ecx + esi*2 + 2]
je 0x403222
cmp esi, 3
jle 0x403222
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call ebx
movzx edx, byte [edi + 0x17]
mov eax, dword [edi + 0x64]
lea ecx, [eax + esi*2]
mov ax, word [ecx + 2]
mov cx, word [ecx]
push edx
mov dl, byte [edi + 0x16]
push edi
call fcn.00403610
push 0xa
call ebx
movzx eax, byte [edi + 0x17]
movzx edx, byte [edi + 0x16]
mov ecx, dword [edi + 0x64]
mov ebx, dword [ebp - 0x118]
mov cx, word [ecx + ebx*2]
push eax
push edx
lea esi, [ebp - 0x120]
mov edx, edi
call fcn.00403740
mov eax, dword [edi + 0x64]
movzx ecx, word [ebp - 0x120]
cmp cx, word [eax + ebx*2 + 2]
lea eax, [eax + ebx*2]
je 0x40320f
movzx edx, word [eax]
push edx
lea eax, [ebp - 0x11c]
push str.0x_x
push eax
call fcn.00401640
add esp, 0xc
push str.Init_Sensor_Failed_
lea ecx, [edi + 0x190]
call fcn.00403dc0
push 0x56a1ac
lea ecx, [edi + 0x190]
call fcn.00403a10
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [edi + 0x190]
call fcn.00403910
mov esi, dword [ebp - 0x118]
jmp 0x403222
movzx ecx, word [eax + 2]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx edx, word [edi + 0x68]
add esi, 2
mov dword [ebp - 0x118], esi
cmp esi, edx
jl 0x402ff5
movzx ecx, word [edi + 0x12]
movzx eax, word [edi + 0x10]
imul eax, ecx
mov cl, byte [edi + 0x14]
mov dword [edi + 0xc], eax
cmp cl, 2
je 0x403260
cmp cl, 3
je 0x403260
cmp cl, 6
je 0x403260
cmp cl, 7
je 0x403260
test cl, cl
jne 0x403266
lea edx, [eax + eax]
mov dword [edi + 0xc], edx
mov esi, edi
call fcn.00402030
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403324
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403324
mov eax, dword [edi + 0x64]
movzx ecx, word [eax + esi*2]
push ecx
lea edx, [ebp - 0x11c]
push str.0x_x
push edx
call fcn.00401640
add esp, 0xc
push 0x13
lea esi, [edi + 0x190]
push str.Init_Sensor_Failed_
mov ecx, esi
call fcn.00403ce0
push 1
push 0x56a1ac
mov ecx, esi
call fcn.00403910
mov edi, dword [ebp - 0x11c]
mov eax, dword [edi - 0xc]
push eax
push edi
mov ecx, esi
call fcn.00403910
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403312
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403329
movzx ecx, word [edi + 0x12]
movzx edx, word [edi + 0x10]
imul ecx, edx
mov dword [edi + 0xc], ecx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005162b5
mov esp, ebp
pop ebp
ret