Function at 0x4d9bbd
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x622439
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x24], ebx
mov ebp, dword [esi + 0x158]
cmp ebp, ebx
mov dword [esp + 0x2c], ebp
je 0x4da7f5
mov eax, dword [0x6d9224]
cmp eax, ebx
jne 0x4d9bed
mov eax, 0x6fdb50
mov ecx, dword [0x65329c]
push ecx
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.004e9b90
lea edx, [esp + 0xc]
mov dword [esp + 0x1cc], ebx
push edx
call fcn.0050f290
add esp, 4
test al, al
je 0x4d9c5b
mov eax, dword [0x6d9224]
test eax, eax
jne 0x4d9c25
mov eax, 0x6fdb50
mov ecx, dword [0x65329c]
push ecx
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.004e9b90
mov ebx, 1
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x10]
mov byte [esp + 0x1cc], bl
push edx
call fcn.0050f240
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x4d9c70
call fcn.0047d600
xor ecx, ecx
cmp eax, 8
setle cl
lea ecx, [ecx + ecx - 1]
mov dword [esp + 0x14], ecx
push edi
mov edi, dword [sym.imp.MSVCRT.dll_free]
test bl, 1
je 0x4d9c98
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4d9c98
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4d9c98
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1d0], 0xffffffff
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4d9cbe
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4d9cbe
push eax
call edi
add esp, 4
mov eax, dword [esi + 0x194]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
test eax, eax
jbe 0x4d9cfe
mov eax, dword [esi + 0x114]
push 0
push 0
push 0x416
push eax
call ebx
test eax, eax
jne 0x4d9cf3
push str.TB_DELETEBUTTON_failed
call fcn.0045dbf0
add esp, 4
mov eax, dword [esi + 0x194]
inc edi
cmp edi, eax
jb 0x4d9cd0
mov ecx, dword [esi + 0xcc]
xor edx, edx
shr ecx, 7
test cl, 1
mov dword [esp + 0x40], edx
je 0x4d9d19
xor ecx, ecx
jmp 0x4da321
mov eax, dword [esi + 0x184]
mov edi, ebp
imul edi, eax
mov edx, dword [esi + 0x18c]
mov ebx, dword [esi + 0x188]
lea ecx, [esp + 0xc0]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], edi
call fcn.00415d20
push 0
lea ecx, [esp + 0xc4]
mov dword [esp + 0x1d4], 3
mov dword [esp + 0xc4], vtable.wxMemoryDC.1.0
mov dword [esp + method.wxMemoryDC.virtual_0], vtable.wxMemoryDC.0
call fcn.00473990
lea ecx, [esp + 0xc0]
call fcn.00473950
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x1dc], 4
call fcn.00466bd0
mov eax, dword [esp + 0x38]
mov byte [esp + 0x1d0], 5
test eax, eax
je 0x4d9dc8
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4d9dc8
lea ecx, [esp + 0x34]
call fcn.004e8d80
mov edx, dword [esp + 0x1c0]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c4]
call dword [edx + 8]
cmp dword [esp + 0x18], 2
je 0x4d9e48
lea eax, [esp + 0x70]
mov ecx, esi
push eax
call fcn.00461160
push 0x64
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 6
call fcn.004768f0
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1d4], 7
call fcn.00471770
lea ecx, [esp + 0x44]
mov byte [esp + 0x1d0], 6
call fcn.0047d2b0
lea ecx, [esp + 0x70]
mov byte [esp + 0x1d0], 5
call fcn.0047d2b0
lea ecx, [esp + 0xc0]
call fcn.0046fbb0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4d9e53
mov eax, dword [eax + 0x14]
mov dword [esi + 0x18c], eax
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebp
test eax, eax
jne 0x4d9ed4
mov eax, dword [0x701244]
test eax, eax
je 0x4d9e81
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4d9e81
mov ecx, 0x701240
call fcn.004e8d80
mov edx, dword [esp + 0x1c0]
push 0x701240
lea ecx, [esp + 0x1c4]
call dword [edx + 8]
push ebx
push edi
push ebp
call fcn.004db6a0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
add esp, 0xc
test eax, eax
je 0x4d9ebe
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4d9ebe
lea ecx, [esp + 0x34]
call fcn.004e8d80
mov edx, dword [esp + 0x1c0]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c4]
call dword [edx + 8]
xor edi, edi
mov ecx, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], edi
call fcn.004d9a60
mov eax, dword [esi + 0x160]
cmp eax, edi
mov dword [esp + 0x1c], eax
je 0x4da1a5
mov ecx, eax
mov ebp, dword [ecx + 8]
cmp dword [ebp + 0xc], 1
jne 0x4da196
mov eax, dword [ebp + 0x24]
lea edi, [ebp + 0x20]
test eax, eax
jne 0x4d9f16
mov dword [esp + 0x24], eax
jmp 0x4d9f1d
mov edx, dword [eax + 8]
mov dword [esp + 0x24], edx
test eax, eax
jne 0x4d9f25
xor ebx, ebx
jmp 0x4d9f28
mov ebx, dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x3c], ebx
je 0x4d9f8e
mov edx, dword [eax + 0x14]
test edx, edx
je 0x4d9f8e
mov eax, dword [esi + 0x184]
mov edx, dword [esp + 0x24]
sub eax, edx
mov ecx, 0
cdq
sub eax, edx
push 1
sar eax, 1
sets cl
dec ecx
and ecx, eax
mov eax, dword [esi + 0x188]
sub eax, ebx
cdq
sub eax, edx
mov edx, 0
sar eax, 1
sets dl
dec edx
and eax, edx
mov edx, dword [esp + 0xc4]
push eax
mov eax, dword [esp + 0x18]
add ecx, eax
push ecx
push edi
lea ecx, [esp + 0xd0]
call dword [edx + 0x104]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x4da17d
add ebp, 0x28
lea ecx, [esp + 0x68]
push ebp
call fcn.00408f80
mov dword [esp + 0x68], vtable.wxBitmap.0
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x1d0], 8
test eax, eax
je 0x4d9fcc
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4da136
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], vtable.wxImage.0
lea eax, [esp + 0x44]
mov ecx, edi
push eax
mov byte [esp + 0x1d4], 9
call fcn.004671b0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d0], 0xa
push ecx
push eax
call fcn.004dcce0
add esp, 8
lea ecx, [esp + 0x44]
mov byte [esp + 0x1d0], 9
mov dword [esp + 0x44], vtable.wxObject.0
call fcn.004e8d50
cmp dword [esp + 0x18], 1
jne 0x4da0c5
mov eax, dword [esp + 0x3c]
xor edi, edi
test eax, eax
mov dword [esp + 0x28], edi
jle 0x4da0c5
mov eax, dword [esp + 0x24]
xor ebx, ebx
test eax, eax
jle 0x4da0b4
push 0x80
push edi
push ebx
lea ecx, [esp + 0x5c]
call fcn.00479c30
test al, al
je 0x4da0ab
push 0xe
call fcn.0046a9e0
push 0xe
mov esi, eax
call fcn.0046a9e0
push 0xe
mov edi, eax
call fcn.0046a9e0
mov edx, dword [esi]
add esp, 0xc
mov ecx, esi
mov ebp, eax
call dword [edx + 0x30]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x28]
push eax
mov eax, dword [esp + 0x34]
push eax
push ebx
lea ecx, [esp + 0x64]
call fcn.00479710
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x4da046
mov eax, dword [esp + 0x3c]
inc edi
cmp edi, eax
mov dword [esp + 0x28], edi
jl 0x4da03c
lea ecx, [esp + 0x58]
call fcn.004091e0
lea ecx, [esp + 0x50]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0x1d8], 0xb
mov dword [esp + 0x60], vtable.wxBitmap.0
call fcn.00466ec0
lea edx, [esp + 0x58]
lea ecx, [esp + 0x68]
push edx
mov byte [esp + 0x1d4], 0xc
call fcn.005c5080
lea ecx, [esp + 0x58]
mov byte [esp + 0x1d0], 9
call fcn.0047d2b0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d0], 8
mov dword [esp + 0x50], vtable.wxObject.0
call fcn.004e8d50
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x3c]
cmp dword [esp + 0x18], 1
jne 0x4da153
test eax, eax
je 0x4da144
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x24]
push ebx
push ecx
push eax
call fcn.004db6a0
add esp, 0xc
mov ecx, dword [esi + 0x190]
lea edx, [esp + 0x68]
push 0x701240
push edx
call fcn.004ceb40
lea ecx, [esp + 0x68]
mov byte [esp + 0x1d0], 5
call fcn.0047d2b0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x184]
mov edx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx + 0xc]
test ecx, ecx
mov dword [esp + 0x1c], ecx
jne 0x4d9ef9
mov eax, dword [0x701244]
xor ebp, ebp
cmp eax, ebp
je 0x4da1bf
cmp dword [eax + 0x14], ebp
je 0x4da1bf
mov ecx, 0x701240
call fcn.004e8d80
mov edx, dword [esp + 0x1c0]
push 0x701240
lea ecx, [esp + 0x1c4]
call dword [edx + 8]
lea ecx, [esp + 0x34]
call fcn.004e8d80
mov eax, dword [esp + 0x38]
mov dword [eax + 0x14], ebp
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x4da20f
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.004db6a0
add esp, 0xc
mov ebx, eax
jmp 0x4da213
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
cmp edi, ebp
je 0x4da278
call fcn.004837f0
cmp eax, 0x190
jl 0x4da26e
mov eax, dword [esi + 0x114]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x70]
mov dword [esp + 0x7c], ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edx
push ebp
push 0x42e
push eax
mov dword [esp + 0x80], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], edi
mov dword [esp + 0x90], ecx
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4da29e
mov eax, dword [esi + 0x194]
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ecx
push edx
push 0x413
push eax
mov dword [esp + 0x54], ebp
call ebx
call fcn.004837f0
cmp eax, 0x1d6
jl 0x4da2d6
mov eax, dword [esi + 0x190]
cmp eax, ebp
je 0x4da2b9
mov ecx, dword [eax + 8]
jmp 0x4da2bb
xor ecx, ecx
mov eax, dword [esi + 0x114]
push ecx
push ebp
push 0x436
push eax
call ebx
cmp eax, ebp
je 0x4da2d6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d0], 4
call fcn.0047d2b0
lea ecx, [esp + 0xc0]
mov dword [esp + 0x1d0], 0xffffffff
mov dword [esp + method.wxMemoryDCBase.virtual_0], vtable.wxMemoryDCBase.0
call fcn.0046f770
mov edx, dword [esp + 0x84]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x88]
mov eax, dword [esi + 0x114]
and ecx, 0xffff
shl ecx, 0x10
and edx, 0xffff
or ecx, edx
push ecx
push 0
push 0x420
push eax
call ebx
lea eax, [ebp + ebp*4]
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x94]
mov dword [esp + 0x2c], eax
call fcn.004f5520
mov eax, dword [esi + 0x160]
mov dword [esp + 0x1d0], 0xd
test eax, eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x4da52f
mov ecx, dword [esp + 0x2c]
mov ebx, eax
lea ebp, [ecx + 8]
mov dword [esp + 0x14], ebp
mov eax, dword [esi + 0xcc]
mov edi, dword [ebx + 8]
test eax, 0x4008
je 0x4da3c0
cmp dword [edi + 0xc], 2
jne 0x4da3c0
call fcn.004837f0
cmp eax, 0x1d8
jle 0x4da520
lea ecx, [ebp - 8]
xor edx, edx
mov eax, ecx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov eax, dword [edi + 0xc]
xor dl, dl
dec eax
je 0x4da3fa
dec eax
je 0x4da3ed
dec eax
jne 0x4da50c
mov edi, dword [edi + 0x10]
mov dword [ebp - 4], edi
mov byte [ebp], 4
mov byte [ebp + 1], 1
jmp 0x4da50c
mov eax, dword [esi + 0xcc]
shr eax, 7
test al, 1
jne 0x4da40d
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
mov ecx, dword [esi + 0xcc]
shr ecx, 8
test cl, 1
je 0x4da428
mov eax, dword [edi + 0x30]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4da428
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], eax
mov al, byte [edi + 0x1d]
test al, al
je 0x4da439
or byte [ebp], 4
mov al, byte [edi + 0x1c]
test al, al
je 0x4da444
or byte [ebp], 1
mov eax, dword [edi + 0x14]
sub eax, 0
je 0x4da4fb
dec eax
je 0x4da4f5
dec eax
jne 0x4da4fb
mov al, byte [esp + 0x23]
mov byte [ebp + 1], 6
test al, al
jne 0x4da491
mov bl, byte [ebp]
push 1
or bl, 1
mov ecx, edi
mov byte [ebp], bl
call fcn.004dbce0
test al, al
je 0x4da4f1
mov edx, dword [esi]
push 1
push edi
mov ecx, esi
call dword [edx + 0x370]
mov dl, 1
jmp 0x4da4ff
mov al, byte [edi + 0x1c]
test al, al
je 0x4da4f1
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x10]
test edi, edi
je 0x4da4f1
lea ecx, [ebp - 0x14]
mov dword [esp + 0x28], ecx
mov ebx, dword [edi + 8]
cmp dword [ebx + 0xc], 1
jne 0x4da4f1
cmp dword [ebx + 0x14], 2
jne 0x4da4f1
push 0
mov ecx, ebx
call fcn.004dbce0
test al, al
je 0x4da4d3
mov edx, dword [esi]
push 0
push ebx
mov ecx, esi
call dword [edx + 0x370]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x14]
mov dl, byte [eax]
sub eax, 0x14
and dl, 0xfe
mov dword [esp + 0x28], eax
mov byte [eax + 0x14], dl
mov edi, dword [edi + 0x10]
test edi, edi
jne 0x4da4aa
mov dl, 1
jmp 0x4da4ff
mov byte [ebp + 1], 2
jmp 0x4da4ff
mov byte [ebp + 1], 0
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x23], dl
inc ecx
add ebp, 0x14
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov ebx, dword [ebx + 0xc]
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x4da39a
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x114]
push edi
push ecx
push 0x444
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call fcn.005b6480
mov edi, dword [esi + 0x160]
xor ecx, ecx
add esp, 4
cmp edi, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
je 0x4da78b
mov ebp, dword [edi + 8]
mov dword [esp + 0x30], ebp
cmp dword [ebp + 0xc], 3
sete bl
test bl, bl
jne 0x4da592
test dword [esi + 0xcc], 0x4008
je 0x4da777
mov eax, dword [esi + 0x114]
lea edx, [esp + 0x58]
push edx
push ecx
push 0x41d
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test bl, bl
jne 0x4da5c7
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
sub eax, edx
add ecx, eax
mov dword [esp + 0x24], ecx
jmp 0x4da773
mov edi, dword [ebp + 0x18]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x14]
push eax
mov edx, dword [edi]
push ecx
mov ecx, edi
call dword [edx + 0x218]
mov dword [esp + 0x28], 0xffffffff
call fcn.004837f0
cmp eax, 0x1d7
jl 0x4da638
mov dx, word [esp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x114]
mov word [esp + 0xb2], dx
lea edx, [esp + 0xa0]
mov dword [esp + 0xa0], 0x20
push edx
push eax
push 0x440
push ecx
mov dword [esp + 0xb4], 0x40
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4da6cc
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
sub ebx, eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov byte [esp + 0x78], 4
mov dword [esp + 0x7c], eax
mov byte [esp + 0x79], 1
mov dword [esp + 0x80], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
cdq
idiv ebx
mov ebp, eax
test ebp, ebp
jbe 0x4da6ae
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x70]
push ecx
push edx
push 0x443
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
inc ecx
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
jne 0x4da67e
mov eax, dword [esp + 0x30]
push 0
push 0xffffffffffffffff
mov ecx, edi
mov dword [eax + 0x3c], ebp
inc ebp
imul ebp, ebx
mov edx, dword [edi]
push ebp
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [edx + 0x228]
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
sub ebx, edx
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x10], eax
jns 0x4da702
mov eax, dword [edi]
lea ecx, [ebx - 2]
push 0
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0x228]
mov dword [esp + 0x10], 2
test dword [esi + 0xcc], 0x4008
je 0x4da73e
mov edx, dword [esp + 0x24]
mov eax, dword [esi]
lea ecx, [esp + 0x44]
xor ebp, ebp
push ecx
mov ecx, esi
mov dword [esp + 0x34], edx
call dword [eax + 0x334]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
lea eax, [ebx + edx*2]
add ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x30]
jmp 0x4da74f
mov ebp, dword [esp + 0x28]
cmp ebp, 0xffffffff
jne 0x4da74b
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x10]
mov ebx, dword [edi]
push 0
push 0xffffffffffffffff
lea eax, [edx + 1]
push 0xffffffffffffffff
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, edi
push eax
push ebp
call dword [ebx + 0x228]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edi, dword [edi + 0xc]
inc ecx
test edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ecx
jne 0x4da570
mov eax, dword [esi + 0xcc]
mov dword [esi + 0x194], ecx
test eax, 0x4008
pop edi
jne 0x4da7b7
mov eax, dword [esi + 0x174]
test eax, eax
jne 0x4da7d0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x340]
jmp 0x4da7d0
test ecx, ecx
jbe 0x4da7d0
mov edx, dword [esi]
push ecx
mov ecx, esi
mov dword [esi + 0x174], 1
call dword [edx + 0x340]
mov ecx, esi
call fcn.00460510
mov ecx, esi
call fcn.004dab30
lea ecx, [esp + 0x90]
mov dword [esp + 0x1cc], 0xffffffff
call fcn.004f5680
mov ecx, dword [esp + 0x1c4]
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c4
ret